mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-09 05:34:37 +00:00
17 lines
304 B
Rust
17 lines
304 B
Rust
// check-pass
|
|
// Ensure that trailing semicolons cause warnings by default
|
|
|
|
macro_rules! foo {
|
|
() => {
|
|
true; //~ WARN trailing semicolon in macro
|
|
//~| WARN this was previously
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let _val = match true {
|
|
true => false,
|
|
_ => foo!()
|
|
};
|
|
}
|