summary refs log tree commit diff
path: root/src/test/ui/mut/mutable-class-fields.ast.stderr
blob: 80185703a9e02a13562b1862da7b40684e7abd71 (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:18: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`.