]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/move-out-of-slice-1.stderr
Rollup merge of #59825 - jsgf:from-ref-string, r=sfackler
[rust.git] / src / test / ui / moves / move-out-of-slice-1.stderr
1 error[E0508]: cannot move out of type `[A]`, a non-copy slice
2   --> $DIR/move-out-of-slice-1.rs:7:11
3    |
4 LL |     match a {
5    |           ^ cannot move out of here
6 LL |         box [a] => {},
7    |              - data moved here
8    |
9 note: move occurs because `a` has type `A`, which does not implement the `Copy` trait
10   --> $DIR/move-out-of-slice-1.rs:8:14
11    |
12 LL |         box [a] => {},
13    |              ^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0508`.