]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/mir_codegen_array.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / mir / mir_codegen_array.rs
1 // run-pass
2 #![allow(unused_mut)]
3 fn into_inner() -> [u64; 1024] {
4     let mut x = 10 + 20;
5     [x; 1024]
6 }
7
8 fn main(){
9     let x: &[u64] = &[30; 1024];
10     assert_eq!(&into_inner()[..], x);
11 }