]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/move-out-of-slice-1.rs
Move /src/test to /tests
[rust.git] / tests / ui / moves / move-out-of-slice-1.rs
1 #![feature(box_patterns)]
2
3 struct A;
4
5 fn main() {
6     let a: Box<[A]> = Box::new([A]);
7     match a { //~ ERROR cannot move out of type `[A]`, a non-copy slice
8         box [a] => {},
9         _ => {}
10     }
11 }