2022-02-27 15:26:24 -06:00
|
|
|
// This test check that #[allow(unexpected_cfgs)] work if put on an upper level
|
|
|
|
//
|
|
|
|
// check-pass
|
2023-05-01 07:16:38 -05:00
|
|
|
// compile-flags: --check-cfg=cfg() -Z unstable-options
|
2022-02-27 15:26:24 -06:00
|
|
|
|
|
|
|
#[allow(unexpected_cfgs)]
|
|
|
|
mod aa {
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|