Add a regression test for issue-75299
This commit is contained in:
parent
d4fdf6e754
commit
38f460f866
|
@ -0,0 +1,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>();
|
||||
}
|
Loading…
Reference in New Issue