]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-cfg/allow-same-level.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / check-cfg / allow-same-level.rs
1 // This test check that #[allow(unexpected_cfgs)] doesn't work if put on the same level
2 //
3 // check-pass
4 // compile-flags:--check-cfg=names() -Z unstable-options
5
6 #[allow(unexpected_cfgs)]
7 #[cfg(FALSE)]
8 //~^ WARNING unexpected `cfg` condition name
9 fn bar() {}
10
11 fn main() {}