Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
check-cfg
/
allow-upper-level.rs
blob: bd5c97815f2def10ea7524a8d414b0c5942c3914 [
file
] [
log
] [
blame
]
// 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
()
{}