]> git.lizzy.rs Git - rust.git/blob - src/test/ui/check-cfg/allow-upper-level.rs
Move some tests with compare-mode=nll output to revisions
[rust.git] / src / test / 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() {}