2017-10-06 16:30:23 -04:00
|
|
|
error[E0594]: cannot assign to immutable borrowed content `*x`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/enum.rs:9:5
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | *x += 1; //~ ERROR cannot assign to immutable
|
2017-10-06 16:30:23 -04:00
|
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error[E0594]: cannot assign to immutable borrowed content `*x`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/enum.rs:13:9
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | *x += 1; //~ ERROR cannot assign to immutable
|
2017-10-06 16:30:23 -04:00
|
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error[E0594]: cannot assign to immutable borrowed content `*x`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/enum.rs:19:9
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | *x += 1; //~ ERROR cannot assign to immutable
|
2017-10-06 16:30:23 -04:00
|
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0594`.
|