]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mutable-class-fields.stderr
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
[rust.git] / src / test / ui / mut / mutable-class-fields.stderr
1 error[E0594]: cannot assign to `nyan.how_hungry`, as `nyan` is not declared as mutable
2   --> $DIR/mutable-class-fields.rs:15:3
3    |
4 LL |   let nyan : Cat = cat(52, 99);
5    |       ---- help: consider changing this to be mutable: `mut nyan`
6 LL |   nyan.how_hungry = 0;
7    |   ^^^^^^^^^^^^^^^^^^^ cannot assign
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0594`.