2022-02-27 15:26:24 -06:00
|
|
|
// This test check that #[allow(unexpected_cfgs)] doesn't work if put on the same 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)]
|
|
|
|
#[cfg(FALSE)]
|
|
|
|
//~^ WARNING unexpected `cfg` condition name
|
|
|
|
fn bar() {}
|
|
|
|
|
|
|
|
fn main() {}
|