]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/lint-trailing-macro-call.rs
Auto merge of #106952 - petrochenkov:docglob, r=notriddle,GuillaumeGomez
[rust.git] / tests / ui / macros / lint-trailing-macro-call.rs
1 // check-pass
2 //
3 // Ensures that we properly lint
4 // a removed 'expression' resulting from a macro
5 // in trailing expression position
6
7 macro_rules! expand_it {
8     () => {
9         #[cfg(FALSE)] 25; //~  WARN trailing semicolon in macro
10                           //~| WARN this was previously
11     }
12 }
13
14 fn main() {
15     expand_it!()
16 }