]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0507]: cannot move out of `s.0` which is behind a shared reference |
0731742a | 2 | --> $DIR/access-mode-in-closures.rs:8:15 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | match *s { S(v) => v } |
dc9dc135 XL |
5 | | ^^ - |
6 | | | | | |
7 | | | data moved here | |
1b1a35ee | 8 | | | move occurs because `v` has type `Vec<isize>`, which does not implement the `Copy` trait |
dc9dc135 | 9 | | help: consider borrowing here: `&*s` |
b7449926 XL |
10 | |
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0507`. |