]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0596.ast.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / E0596.ast.stderr
1 error[E0596]: cannot borrow immutable local variable `x` as mutable
2   --> $DIR/E0596.rs:16:18
3    |
4 LL |     let x = 1;
5    |         - help: make this binding mutable: `mut x`
6 LL |     let y = &mut x; //[ast]~ ERROR [E0596]
7    |                  ^ cannot borrow mutably
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0596`.