]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/move-out-of-slice-1.stderr
Rollup merge of #58873 - GuillaumeGomez:fix-auto-hide-method-doc, r=QuietMisdreavus
[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:8:13
3    |
4 LL |         box [a] => {},
5    |             ^-^
6    |             ||
7    |             |hint: to prevent move, use `ref a` or `ref mut a`
8    |             cannot move out of here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0508`.