1 error[E0594]: cannot assign to `*x` which is behind a `&` reference
4 LL | *x += 1; //~ ERROR cannot assign to immutable
5 | ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
7 error[E0594]: cannot assign to `*x` which is behind a `&` reference
10 LL | *x += 1; //~ ERROR cannot assign to immutable
11 | ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
13 error[E0594]: cannot assign to `*x` which is behind a `&` reference
16 LL | *x += 1; //~ ERROR cannot assign to immutable
17 | ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0594`.