]> git.lizzy.rs Git - rust.git/blob - src/test/ui/access-mode-in-closures.stderr
Auto merge of #59114 - matthewjasper:enable-migate-2015, r=pnkfelix
[rust.git] / src / test / ui / access-mode-in-closures.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/access-mode-in-closures.rs:8:15
3    |
4 LL |         match *s { S(v) => v }
5    |               ^^     - data moved here
6    |               |
7    |               cannot move out of borrowed content
8    |               help: consider removing the `*`: `s`
9    |
10 note: move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
11   --> $DIR/access-mode-in-closures.rs:8:22
12    |
13 LL |         match *s { S(v) => v }
14    |                      ^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0507`.