Skip to content

Commit 38f460f

Browse files
committed
Add a regression test for issue-75299
1 parent d4fdf6e commit 38f460f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// compile-flags: -Zmir-opt-level=3
2+
// run-pass
3+
4+
#![feature(const_generics)]
5+
#![allow(incomplete_features)]
6+
fn main() {
7+
fn foo<const N: usize>() -> [u8; N] {
8+
[0; N]
9+
}
10+
let _x = foo::<1>();
11+
}

0 commit comments

Comments
 (0)