]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-block-tail.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / coercion / coerce-block-tail.rs
1 // check-fail
2 fn main() {
3     let _: &str = & { String::from("hahah")};
4     let _: &i32 = & { Box::new(1i32) };
5     //~^ ERROR mismatched types
6 }