]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr
Stabilize match_default_bindings
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / explicit-mut.stderr
1 error[E0594]: cannot assign to immutable borrowed content `*n`
2   --> $DIR/explicit-mut.rs:17:13
3    |
4 LL |         Some(n) => {
5    |              - consider changing this to `n`
6 LL |             *n += 1; //~ ERROR cannot assign to immutable
7    |             ^^^^^^^ cannot borrow as mutable
8
9 error[E0594]: cannot assign to immutable borrowed content `*n`
10   --> $DIR/explicit-mut.rs:25:13
11    |
12 LL |         Some(n) => {
13    |              - consider changing this to `n`
14 LL |             *n += 1; //~ ERROR cannot assign to immutable
15    |             ^^^^^^^ cannot borrow as mutable
16
17 error[E0594]: cannot assign to immutable borrowed content `*n`
18   --> $DIR/explicit-mut.rs:33:13
19    |
20 LL |         Some(n) => {
21    |              - consider changing this to `n`
22 LL |             *n += 1; //~ ERROR cannot assign to immutable
23    |             ^^^^^^^ cannot borrow as mutable
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0594`.