mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +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!()] = [];
|
||
|
}
|