Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
check-cfg
/
allow-upper-level.rs
blob: 657a4768f952c9b9db3f60b4287bd95d6a5fb676 [
file
] [
log
] [
blame
]
// 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
()
{}