summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/rfc-2383-lint-reason/expect_with_reason.rs
blob: b4183d982118e54ee876d7f6c559e90a187ecdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}