]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/access-mode-in-closures.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / borrowck / access-mode-in-closures.stderr
1 error[E0507]: cannot move out of `s.0` which is behind a shared reference
2   --> $DIR/access-mode-in-closures.rs:8:15
3    |
4 LL |         match *s { S(v) => v }
5    |               ^^     -
6    |               |      |
7    |               |      data moved here
8    |               |      move occurs because `v` has type `Vec<isize>`, which does not implement the `Copy` trait
9    |               help: consider borrowing here: `&*s`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0507`.