]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2590.nll.stderr
Update output for borrowck=migrate compare mode.
[rust.git] / src / test / ui / issues / issue-2590.nll.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/issue-2590.rs:22:9
3    |
4 LL |         self.tokens //~ ERROR cannot move out of borrowed content
5    |         ^^^^^^^^^^^ cannot move out of borrowed content
6
7 error[E0507]: cannot move out of `self.tokens` which is behind a `&` reference
8   --> $DIR/issue-2590.rs:22:9
9    |
10 LL |     fn parse(&self) -> Vec<isize> {
11    |              ----- help: consider changing this to be a mutable reference: `&mut self`
12 LL |         self.tokens //~ ERROR cannot move out of borrowed content
13    |         ^^^^^^^^^^^
14    |         |
15    |         cannot move out of `self.tokens` which is behind a `&` reference
16    |         `self` is a `&` reference, so the data it refers to cannot be moved
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0507`.