summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.rs
blob: 98080b4e8224f99ff5a9f6db9400f8c771836ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

#![feature(lint_reasons)]
#![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;
}