blob: 657a4768f952c9b9db3f60b4287bd95d6a5fb676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// This test check that #[allow(unexpected_cfgs)] work if put on an upper level
//
//@ check-pass
//@ no-auto-check-cfg
//@ compile-flags: --check-cfg=cfg()
#[allow(unexpected_cfgs)]
mod aa {
#[cfg(false)]
fn bar() {}
}
fn main() {}
|