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

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

12 lines
357 B
Rust
Raw Normal View History

// check-pass
#![feature(lint_reasons)]
#![warn(unused)]
#![expect(unused_variables, reason = "<This should fail and display this reason>")]
//~^ WARNING this lint expectation is unfulfilled [unfulfilled_lint_expectations]
//~| NOTE `#[warn(unfulfilled_lint_expectations)]` on by default
//~| NOTE <This should fail and display this reason>
fn main() {}