rust/tests/ui/const-generics/issues/issue-75299.rs
2024-02-16 20:02:50 +00:00

9 lines
152 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>();
}