]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-cfg/allow-upper-level.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / check-cfg / allow-upper-level.rs
1 // This test check that #[allow(unexpected_cfgs)] work if put on an upper level
2 //
3 // check-pass
4 // compile-flags:--check-cfg=names() -Z unstable-options
5
6 #[allow(unexpected_cfgs)]
7 mod aa {
8     #[cfg(FALSE)]
9     fn bar() {}
10 }
11
12 fn main() {}