2018-08-14 08:24:44 -04:00
|
|
|
error[E0594]: cannot assign to `nyan.how_hungry`, as `nyan` is not declared as mutable
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/mutable-class-fields.rs:18:3
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2018-12-16 22:21:47 -05:00
|
|
|
LL | let nyan : Cat = cat(52, 99);
|
2018-08-14 08:24:44 -04:00
|
|
|
| ---- help: consider changing this to be mutable: `mut nyan`
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | nyan.how_hungry = 0; //[ast]~ ERROR cannot assign
|
2018-08-14 08:24:44 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ cannot assign
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-08-14 08:24:44 -04:00
|
|
|
For more information about this error, try `rustc --explain E0594`.
|