]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[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 |             *n += 1; //~ ERROR cannot assign to immutable
5    |             ^^^^^^^ cannot borrow as mutable
6
7 error[E0594]: cannot assign to immutable borrowed content `*n`
8   --> $DIR/explicit-mut.rs:25:13
9    |
10 LL |             *n += 1; //~ ERROR cannot assign to immutable
11    |             ^^^^^^^ cannot borrow as mutable
12
13 error[E0594]: cannot assign to immutable borrowed content `*n`
14   --> $DIR/explicit-mut.rs:33:13
15    |
16 LL |             *n += 1; //~ ERROR cannot assign to immutable
17    |             ^^^^^^^ cannot borrow as mutable
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0594`.