rust/tests/ui/macros/lint-trailing-macro-call.rs
2024-02-16 20:02:50 +00:00

16 lines
333 B
Rust

//@ check-pass
//
// Ensures that we properly lint
// a removed 'expression' resulting from a macro
// in trailing expression position
macro_rules! expand_it {
() => {
#[cfg(FALSE)] 25; //~ WARN trailing semicolon in macro
//~| WARN this was previously
}
}
fn main() {
expand_it!()
}