mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 11:28:16 +00:00
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.
16 lines
289 B
Rust
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!()
|
|
};
|
|
}
|