mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
9 lines
150 B
Rust
9 lines
150 B
Rust
// compile-flags: -Zmir-opt-level=4
|
|
// run-pass
|
|
fn main() {
|
|
fn foo<const N: usize>() -> [u8; N] {
|
|
[0; N]
|
|
}
|
|
let _x = foo::<1>();
|
|
}
|