Files
rust/tests/ui/macros/lint-trailing-macro-call.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
316 B
Rust
Raw Permalink Normal View History

// 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!()
}