mirror of https://github.com/rust-lang/rust
14 lines
362 B
Rust
14 lines
362 B
Rust
//@ check-pass
|
|
|
|
#![warn(unused)]
|
|
|
|
#[warn(unused_variables)]
|
|
#[expect(unused_variables)]
|
|
//~^ WARNING this lint expectation is unfulfilled [unfulfilled_lint_expectations]
|
|
//~| NOTE `#[warn(unfulfilled_lint_expectations)]` on by default
|
|
#[allow(unused_variables)]
|
|
#[expect(unused_variables)] // Only this expectation will be fulfilled
|
|
fn main() {
|
|
let x = 2;
|
|
}
|