]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-mut.rs
Merge commit '8d14c94b5c0a66241b4244f1c60ac5859cec1d97' into clippyup
[rust.git] / src / test / ui / coercion / coerce-mut.rs
1 fn f(x: &mut i32) {}
2
3 fn main() {
4     let x = 0;
5     f(&x);
6     //~^ ERROR mismatched types
7     //~| expected mutable reference `&mut i32`
8     //~| found reference `&{integer}`
9     //~| types differ in mutability
10 }