mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
22 lines
251 B
Rust
22 lines
251 B
Rust
//@ check-pass
|
|
|
|
// This is a regression test for #128016.
|
|
|
|
macro_rules! len_inner {
|
|
() => {
|
|
BAR
|
|
};
|
|
}
|
|
|
|
macro_rules! len {
|
|
() => {
|
|
len_inner!()
|
|
};
|
|
}
|
|
|
|
const BAR: usize = 0;
|
|
|
|
fn main() {
|
|
let val: [bool; len!()] = [];
|
|
}
|