2021-09-15 19:32:03 -05:00
|
|
|
//@ check-pass
|
|
|
|
|
//
|
|
|
|
|
// Ensures that we properly lint
|
|
|
|
|
// a removed 'expression' resulting from a macro
|
|
|
|
|
// in trailing expression position
|
|
|
|
|
|
|
|
|
|
macro_rules! expand_it {
|
|
|
|
|
() => {
|
2025-03-29 17:24:03 +00:00
|
|
|
#[cfg(false)] 25; //~ WARN trailing semicolon in macro
|
2021-09-15 19:32:03 -05:00
|
|
|
//~| WARN this was previously
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
expand_it!()
|
|
|
|
|
}
|