rust/src/test/ui/issues/issue-2590.nll.stderr

21 lines
846 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0507]: cannot move out of borrowed content
--> $DIR/issue-2590.rs:22:9
|
LL | self.tokens //~ ERROR cannot move out of borrowed content
| ^^^^^^^^^^^ cannot move out of borrowed content
error[E0507]: cannot move out of `self.tokens` which is behind a `&` reference
--> $DIR/issue-2590.rs:22:9
|
LL | fn parse(&self) -> Vec<isize> {
| ----- help: consider changing this to be a mutable reference: `&mut self`
LL | self.tokens //~ ERROR cannot move out of borrowed content
| ^^^^^^^^^^^
| |
| cannot move out of `self.tokens` which is behind a `&` reference
| `self` is a `&` reference, so the data it refers to cannot be moved
error: aborting due to 2 previous errors
2018-07-15 16:11:54 -05:00
For more information about this error, try `rustc --explain E0507`.