1 #![feature(unsized_locals)]
2 //~^ WARN the feature `unsized_locals` is incomplete
10 let a: Box<[A]> = Box::new([A]);
12 //~^ ERROR cannot move out of type `[A]`, a non-copy slice
16 let b: Box<[A]> = Box::new([A, A, A]);
18 //~^ ERROR cannot move out of type `[A]`, a non-copy slice
19 [_, _, b @ .., _] => {}
23 // `[C]` isn't `Copy`, even if `C` is.
24 let c: Box<[C]> = Box::new([C]);
26 //~^ ERROR cannot move out of type `[C]`, a non-copy slice
30 let d: Box<[C]> = Box::new([C, C, C]);
32 //~^ ERROR cannot move out of type `[C]`, a non-copy slice
33 [_, _, d @ .., _] => {}