]> git.lizzy.rs Git - rust.git/blob - tests/ui/mut/mutable-class-fields.stderr
Rollup merge of #106805 - madsravn:master, r=compiler-errors
[rust.git] / tests / 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 |   nyan.how_hungry = 0;
5    |   ^^^^^^^^^^^^^^^^^^^ cannot assign
6    |
7 help: consider changing this to be mutable
8    |
9 LL |   let mut nyan : Cat = cat(52, 99);
10    |       +++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0594`.