mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 20:17:50 +00:00
16 lines
183 B
Rust
16 lines
183 B
Rust
//@ check-pass
|
|
|
|
// This is a regression test for #128016.
|
|
|
|
macro_rules! len {
|
|
() => {
|
|
BAR
|
|
};
|
|
}
|
|
|
|
const BAR: usize = 0;
|
|
|
|
fn main() {
|
|
let val: [bool; len!()] = [];
|
|
}
|