mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
330 B
Rust
15 lines
330 B
Rust
// Regression test for issue #84195
|
|
// Checks that we properly fire lints that occur inside
|
|
// anon consts.
|
|
|
|
#![deny(semicolon_in_expressions_from_macros)]
|
|
|
|
macro_rules! len {
|
|
() => { 0; }; //~ ERROR trailing semicolon
|
|
//~| WARN this was previously accepted
|
|
}
|
|
|
|
fn main() {
|
|
let val: [u8; len!()] = [];
|
|
}
|