mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
10 lines
159 B
Rust
10 lines
159 B
Rust
//@ run-pass
|
|
fn into_inner(x: u64) -> [u64; 1024] {
|
|
[x; 2*4*8*16]
|
|
}
|
|
|
|
fn main(){
|
|
let x: &[u64] = &[42; 1024];
|
|
assert_eq!(&into_inner(42)[..], x);
|
|
}
|