]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-mut.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' 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 }