1 error[E0594]: cannot assign to immutable borrowed content `*n`
2 --> $DIR/explicit-mut.rs:17:13
5 | - consider changing this to `n`
6 LL | *n += 1; //~ ERROR cannot assign to immutable
7 | ^^^^^^^ cannot borrow as mutable
9 error[E0594]: cannot assign to immutable borrowed content `*n`
10 --> $DIR/explicit-mut.rs:25:13
13 | - consider changing this to `n`
14 LL | *n += 1; //~ ERROR cannot assign to immutable
15 | ^^^^^^^ cannot borrow as mutable
17 error[E0594]: cannot assign to immutable borrowed content `*n`
18 --> $DIR/explicit-mut.rs:33:13
21 | - consider changing this to `n`
22 LL | *n += 1; //~ ERROR cannot assign to immutable
23 | ^^^^^^^ cannot borrow as mutable
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0594`.