about summary refs log tree commit diff
path: root/tests/ui/macros/lint-trailing-macro-call.rs
blob: 25fa91062c4341acedb13d4f34c9f91b48764401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Ensures that we properly lint
// a removed 'expression' resulting from a macro
// in trailing expression position

macro_rules! expand_it {
    () => {
        #[cfg(false)] 25; //~  ERROR trailing semicolon in macro
                          //~| WARN this was previously
    }
}

fn main() {
    expand_it!()
}