rust/tests/ui/const-generics/early/trivial-const-arg-macro-nested.rs

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!()] = [];
}