Skip to content

Commit

Permalink
Add a regression test for issue-75299
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 1, 2020
1 parent d4fdf6e commit 38f460f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/const-generics/issues/issue-75299.rs
Original file line number Diff line number Diff line change
@@ -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>();
}

0 comments on commit 38f460f

Please sign in to comment.