fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
349 B10 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