fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
417 B11 linesraw
1error[E0594]: cannot assign to `nyan.how_hungry`, as `nyan` is not declared as mutable
2  --> $DIR/mutable-class-fields.rs:15:3
3   |
4LL |   let nyan : Cat = cat(52, 99);
5   |       ---- help: consider changing this to be mutable: `mut nyan`
6LL |   nyan.how_hungry = 0;
7   |   ^^^^^^^^^^^^^^^^^^^ cannot assign
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0594`.