fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0508]: cannot move out of type `[Foo]`, a non-copy slice 2 --> $DIR/borrowck-move-out-of-vec-tail.rs:17: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 | 12 = note: move occurs because these variables have types that don't implement the `Copy` trait 13help: consider removing the `&` 14 | 15LL | [Foo { string: a }, 16LL | Foo { string: b }] => { 17 | 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0508`.