blob: 9d3f25b3b47f8a5b7ee9ea670254f58333ce1fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// compile-flags: -Zmir-opt-level=4
// run-pass
#![feature(const_generics)]
#![allow(incomplete_features)]
fn main() {
fn foo<const N: usize>() -> [u8; N] {
[0; N]
}
let _x = foo::<1>();
}
|