fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
740 B21 linesraw
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   |
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`.