rust/tests/ui/lint/forbid-error-capped.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
259 B
Rust
Raw Normal View History

// 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() {}