1 #![feature(unsized_locals)]
8 let a: Box<[A]> = Box::new([A]);
10 //~^ ERROR cannot move out of type `[A]`, a non-copy slice
14 let b: Box<[A]> = Box::new([A, A, A]);
16 //~^ ERROR cannot move out of type `[A]`, a non-copy slice
17 [_, _, b @ .., _] => {},
21 // `[C]` isn't `Copy`, even if `C` is.
22 let c: Box<[C]> = Box::new([C]);
24 //~^ ERROR cannot move out of type `[C]`, a non-copy slice
28 let d: Box<[C]> = Box::new([C, C, C]);
30 //~^ ERROR cannot move out of type `[C]`, a non-copy slice
31 [_, _, d @ .., _] => {},