]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / borrowck / issue-54597-reject-move-out-of-borrow-via-pat.stderr
1 error[E0507]: cannot move out of `*array` which is behind a shared reference
2   --> $DIR/issue-54597-reject-move-out-of-borrow-via-pat.rs:14:13
3    |
4 LL |             *array
5    |             ^^^^^^ move occurs because `*array` has type `Vec<Value>`, which does not implement the `Copy` trait
6    |
7 help: consider removing the dereference here
8    |
9 LL -             *array
10 LL +             array
11    |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0507`.