summary refs log tree commit diff
path: root/src/test/ui/mut/mutable-class-fields.ast.stderr
blob: fc12e22815eff449a0a603f1abcd40f1428b3a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0594]: cannot assign to field `nyan.how_hungry` of immutable binding
  --> $DIR/mutable-class-fields.rs:28:3
   |
LL |   let nyan : cat = cat(52, 99);
   |       ---- help: make this binding mutable: `mut nyan`
LL |   nyan.how_hungry = 0; //[ast]~ ERROR cannot assign
   |   ^^^^^^^^^^^^^^^^^^^ cannot mutably borrow field of immutable binding

error: aborting due to previous error

For more information about this error, try `rustc --explain E0594`.