]> git.lizzy.rs Git - rust.git/blob - src/test/ui/augmented-assignments.stderr
Move some tests with compare-mode=nll output to revisions
[rust.git] / src / test / ui / augmented-assignments.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2   --> $DIR/augmented-assignments.rs:16:5
3    |
4 LL |     x
5    |     - borrow of `x` occurs here
6 ...
7 LL |     x;
8    |     ^ move out of `x` occurs here
9
10 error[E0596]: cannot borrow `y` as mutable, as it is not declared as mutable
11   --> $DIR/augmented-assignments.rs:23:5
12    |
13 LL |     let y = Int(2);
14    |         - help: consider changing this to be mutable: `mut y`
15 ...
16 LL |     y
17    |     ^ cannot borrow as mutable
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0505, E0596.
22 For more information about an error, try `rustc --explain E0505`.