2015-01-20 07:56:53 -06:00
|
|
|
fn f(x: &mut i32) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = 0;
|
|
|
|
f(&x);
|
|
|
|
//~^ ERROR mismatched types
|
2016-04-20 13:42:13 -05:00
|
|
|
//~| expected type `&mut i32`
|
2016-07-28 11:49:31 -05:00
|
|
|
//~| found type `&{integer}`
|
2016-08-19 18:05:37 -05:00
|
|
|
//~| types differ in mutability
|
2015-01-20 07:56:53 -06:00
|
|
|
}
|