mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +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.
15 lines
316 B
Rust
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!()
|
|
}
|