2018-08-08 07:28:26 -05:00
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/access-mode-in-closures.rs:8:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-11 15:18:35 -05:00
|
|
|
LL | match *s { S(v) => v }
|
2018-12-16 21:21:47 -06:00
|
|
|
| ^^ - data moved here
|
2018-08-08 07:28:26 -05:00
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-14 14:38:37 -05:00
|
|
|
| help: consider removing the `*`: `s`
|
|
|
|
|
|
|
|
|
note: move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/access-mode-in-closures.rs:8:22
|
2018-08-14 14:38:37 -05:00
|
|
|
|
|
2019-03-11 15:18:35 -05:00
|
|
|
LL | match *s { S(v) => v }
|
2018-12-16 21:21:47 -06:00
|
|
|
| ^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-10-20 04:08:36 -05:00
|
|
|
error: aborting due to previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|