blob: e458ddf90746ee0e6e31773d75a4708beea3d3fd [file] [log] [blame] [edit]
//@ check-pass
// compile-args: --cap-lints=warn -Fwarnings
// This checks that the forbid attribute checking is ignored when the forbidden
// lint is capped.
#![forbid(warnings)]
#![allow(unused)]
//~^ WARN allow(unused) incompatible with previous forbid
//~| WARN previously accepted
#[allow(unused)]
mod bar {
fn bar() {}
}
fn main() {}