rust/tests/ui/macros/lint-trailing-macro-call.rs
Josh Triplett 288a565451 Upgrade semicolon_in_expressions_from_macros from warn to deny
This is already warn-by-default, and a future compatibility warning
(FCW) that warns in dependencies. Upgrade it to deny-by-default, as the
next step towards hard error.
2025-07-23 09:14:12 -07:00

15 lines
316 B
Rust

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