]> git.proxmox.com Git - rustc.git/blob - tests/ui/coercion/coerce-block-tail-26978.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / coercion / coerce-block-tail-26978.rs
1 // check-fail
2 fn f(_: &i32) {}
3
4 fn main() {
5 let x = Box::new(1i32);
6
7 f(&x);
8 f(&(x));
9 f(&{x});
10 //~^ ERROR mismatched types
11 }