error[E0308]: mismatched types | |
--> $DIR/coerce-mut.rs:5:7 | |
| | |
LL | f(&x); | |
| ^^ types differ in mutability | |
| | |
= note: expected type `&mut i32` | |
found type `&{integer}` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |