about summary refs log tree commit diff
path: root/tests/ui/lint/rfc-2383-lint-reason/expect_inside_macro.rs
blob: 3a3cef2d00dec868aa7ab48664c0a7c562f2a79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ check-pass

#![warn(unused)]

macro_rules! expect_inside_macro {
    () => {
        #[expect(unused_variables)]
        let x = 0;
    };
}

fn main() {
    expect_inside_macro!();
}