rust/tests/ui/lint/rfc-2383-lint-reason/crate_level_expect.rs

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

14 lines
264 B
Rust
Raw Permalink Normal View History

//@ check-pass
#![warn(unused)]
#![expect(unused_mut)]
//~^ WARNING this lint expectation is unfulfilled [unfulfilled_lint_expectations]
//~| NOTE `#[warn(unfulfilled_lint_expectations)]` on by default
#![expect(unused_variables)]
fn main() {
let x = 0;
}