1 error[E0594]: cannot assign to `*foo` which is behind a `&` reference
2 --> $DIR/issue-51515.rs:17:5
5 | --- help: consider changing this to be a mutable reference: `&mut 16`
8 | ^^^^^^^^^ `foo` is a `&` reference, so the data it refers to cannot be written
10 error[E0594]: cannot assign to `*bar` which is behind a `&` reference
11 --> $DIR/issue-51515.rs:22:5
14 | --- help: consider changing this to be a mutable reference: `&mut i32`
17 | ^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0594`.