| ^^^^^^^^^ `foo` is a `&` reference, so the data it refers to cannot be written
error[E0594]: cannot assign to `*bar`, which is behind a `&` reference
- --> $DIR/issue-51515.rs:10:5
+ --> $DIR/issue-51515.rs:8:5
|
LL | let bar = foo;
- | --- help: consider changing this to be a mutable reference: `&mut i32`
-...
+ | --- consider changing this binding's type to be: `&mut i32`
LL | *bar = 64;
| ^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written