1 error[E0508]: cannot move out of type `[Foo]`, a non-copy slice
2 --> $DIR/borrowck-move-out-of-vec-tail.rs:29:19
5 | ^^^^ cannot move out of here
6 LL | &[Foo { string: a },
9 LL | Foo { string: b }] => {
12 note: move occurs because these variables have types that don't implement the `Copy` trait
13 --> $DIR/borrowck-move-out-of-vec-tail.rs:30:33
15 LL | &[Foo { string: a },
18 LL | Foo { string: b }] => {
20 help: consider removing the `&`
22 LL | [Foo { string: a },
23 LL | //~^ ERROR cannot move out of type `[Foo]`
24 LL | //~| cannot move out
25 LL | //~| to prevent move
26 LL | Foo { string: b }] => {
29 error: aborting due to previous error
31 For more information about this error, try `rustc --explain E0508`.