fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
738 B21 linesraw
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 borrow
14   |
15LL -                 &[Foo { string: a },
16LL +                 [Foo { string: a },
17   |
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0508`.