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

14 lines
161 B
Rust

//@ check-pass
macro_rules! len {
($x:ident) => {
$x
};
}
fn bar<const N: usize>() {
let val: [bool; len!(N)] = [true; N];
}
fn main() {}