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