]> git.lizzy.rs Git - rust.git/blob - src/test/ui/access-mode-in-closures.nll.stderr
2aa8f1c3813090291fbca72df73f78ee8f2f8785
[rust.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    |               ^^       - move occurs because v has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
6    |               |
7    |               cannot move out of borrowed content
8    |               help: consider removing this dereference operator: `s`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0507`.