Extend cfg_attr test

This commit is contained in:
Jonas Schievink 2021-03-13 18:18:05 +01:00
parent 6ab405f2e9
commit 72785fb94d

View file

@ -149,6 +149,9 @@ fn inactive_via_cfg_attr() {
#[cfg_attr(not(never), cfg(not(no)))] fn f() {} #[cfg_attr(not(never), cfg(not(no)))] fn f() {}
#[cfg_attr(never, cfg(no))] fn g() {} #[cfg_attr(never, cfg(no))] fn g() {}
#[cfg_attr(not(never), inline, cfg(no))] fn h() {}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ code is inactive due to #[cfg] directives: no is disabled
"#, "#,
); );
} }