mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
241 B
Rust
13 lines
241 B
Rust
// This test check that #[allow(unexpected_cfgs)] work if put on an upper level
|
|
//
|
|
//@ check-pass
|
|
//@ compile-flags: --check-cfg=cfg() -Z unstable-options
|
|
|
|
#[allow(unexpected_cfgs)]
|
|
mod aa {
|
|
#[cfg(FALSE)]
|
|
fn bar() {}
|
|
}
|
|
|
|
fn main() {}
|