rust/tests/mir-opt/return_an_array.rs

10 lines
169 B
Rust

// skip-filecheck
// this tests move up progration, which is not yet implemented
fn foo() -> [u8; 1024] {
let x = [0; 1024];
return x;
}
fn main() { }