mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 10:24:16 +00:00

this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
14 lines
243 B
Rust
14 lines
243 B
Rust
// 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() {}
|