mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
16 lines
260 B
Rust
16 lines
260 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)]
|
|
|
|
#[allow(unused)]
|
|
mod bar {
|
|
fn bar() {}
|
|
}
|
|
|
|
fn main() {}
|