fork/rust

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

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

master
583 B19 linesraw
1error[E0508]: cannot move out of type `[A]`, a non-copy slice
2  --> $DIR/move-out-of-slice-1.rs:7:11
3   |
4LL |     match a {
5   |           ^ cannot move out of here
6LL |         box [a] => {},
7   |              -
8   |              |
9   |              data moved here
10   |              move occurs because `a` has type `A`, which does not implement the `Copy` trait
11   |
12help: consider borrowing the pattern binding
13   |
14LL |         box [ref a] => {},
15   |              +++
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0508`.