summary refs log tree commit diff
path: root/src/test/ui/mut/mutable-class-fields.ast.stderr
blob: 95a928437df2f49b1ef71708b8af5d4eb4782157 (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;
   |   ^^^^^^^^^^^^^^^^^^^ cannot mutably borrow field of immutable binding

error: aborting due to previous error

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