rust/tests/ui/const-generics/issues/issue-75299.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
150 B
Rust
Raw Normal View History

// compile-flags: -Zmir-opt-level=4
2020-10-01 00:10:53 -05:00
// run-pass
fn main() {
fn foo<const N: usize>() -> [u8; N] {
[0; N]
}
let _x = foo::<1>();
}