]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-block-tail-26978.rs
Auto merge of #103831 - chenyukang:yukang/fix-103751-ice, r=nagisa
[rust.git] / src / test / 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 }