Extend cfg_attr test
This commit is contained in:
parent
6ab405f2e9
commit
72785fb94d
1 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,9 @@ fn inactive_via_cfg_attr() {
|
|||
#[cfg_attr(not(never), cfg(not(no)))] fn f() {}
|
||||
|
||||
#[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
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue