rust/tests/ui/const-generics/issues/issue-75299.rs
2023-01-11 09:32:08 +00:00

9 lines
150 B
Rust

// compile-flags: -Zmir-opt-level=4
// run-pass
fn main() {
fn foo<const N: usize>() -> [u8; N] {
[0; N]
}
let _x = foo::<1>();
}