fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0508]: cannot move out of type `[Foo]`, a non-copy slice 2 --> $DIR/borrowck-move-out-of-vec-tail.rs:19:19 3 | 4LL | match tail { 5 | ^^^^ cannot move out of here 6LL | 7LL | &[Foo { string: a }, 8 | - data moved here 9LL | Foo { string: b }] => { 10 | - ...and here 11 | 12note: move occurs because these variables have types that don't implement the `Copy` trait 13 --> $DIR/borrowck-move-out-of-vec-tail.rs:21:33 14 | 15LL | &[Foo { string: a }, 16 | ^ 17LL | Foo { string: b }] => { 18 | ^ 19help: consider removing the `&` 20 | 21LL | [Foo { string: a }, 22LL | Foo { string: b }] => { 23 | 24 25error: aborting due to previous error 26 27For more information about this error, try `rustc --explain E0508`.