blob: 33a9bf85e23ea080b6476ba3cb9269623732170c (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn main() {
let foo = &16;
//~^ HELP consider changing this to be a mutable reference
*foo = 32;
//~^ ERROR cannot assign to `*foo`, which is behind a `&` reference
let bar = foo;
//~^ HELP consider specifying this binding's type
*bar = 64;
//~^ ERROR cannot assign to `*bar`, which is behind a `&` reference
}
|