mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
66b8a9db1f
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
18 lines
348 B
Rust
18 lines
348 B
Rust
//@ 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() {}
|