1 2 3 4 5 6 7 8 9 10 11
// check-fail fn f(_: &i32) {} fn main() { let x = Box::new(1i32); f(&x); f(&(x)); f(&{x}); //~^ ERROR mismatched types }