rust/tests/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.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

16 lines
289 B
Rust

// Ensure that trailing semicolons cause errors by default
macro_rules! foo {
() => {
true; //~ ERROR trailing semicolon in macro
//~| WARN this was previously
}
}
fn main() {
let _val = match true {
true => false,
_ => foo!()
};
}