]> git.proxmox.com Git - rustc.git/blob - src/test/ui/access-mode-in-closures.nll.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / access-mode-in-closures.nll.stderr
1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/access-mode-in-closures.rs:19:15
3 |
4 LL | match *s { sty(v) => v } //~ ERROR cannot move out
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:19:24
12 |
13 LL | match *s { sty(v) => v } //~ ERROR cannot move out
14 | ^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0507`.