1 error[E0594]: cannot assign to `self.0`, which is behind a `&` reference
2 --> $DIR/suggest-ref-mut.rs:7:9
5 | ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written
7 help: consider changing this to be a mutable reference
9 LL | fn zap(&mut self) {
12 error[E0594]: cannot assign to `*foo`, which is behind a `&` reference
13 --> $DIR/suggest-ref-mut.rs:16:5
16 | ^^^^^^^^^ `foo` is a `&` reference, so the data it refers to cannot be written
18 help: consider changing this to be a mutable reference
20 LL | let ref mut foo = 16;
23 error[E0594]: cannot assign to `*bar`, which is behind a `&` reference
24 --> $DIR/suggest-ref-mut.rs:21:9
27 | ^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written
29 help: consider changing this to be a mutable reference
31 LL | if let Some(ref mut bar) = Some(16) {
34 error[E0594]: cannot assign to `*quo`, which is behind a `&` reference
35 --> $DIR/suggest-ref-mut.rs:25:22
37 LL | ref quo => { *quo = 32; },
38 | ^^^^^^^^^ `quo` is a `&` reference, so the data it refers to cannot be written
40 help: consider changing this to be a mutable reference
42 LL | ref mut quo => { *quo = 32; },
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0594`.