1
Fork 0
rust/src/test/ui/rfc-2005-default-binding-mode/enum.stderr

22 lines
695 B
Text
Raw Normal View History

error[E0594]: cannot assign to immutable borrowed content `*x`
2018-12-25 08:56:47 -07:00
--> $DIR/enum.rs:9:5
|
2018-02-23 03:42:32 +03:00
LL | *x += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ 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
|
2018-02-23 03:42:32 +03:00
LL | *x += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ 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
|
2018-02-23 03:42:32 +03:00
LL | *x += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ 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`.