about summary refs log tree commit diff
path: root/tests/ui/coercion/coerce-block-tail.rs
blob: c0766df0541b1705b5b08941f623e29a6d82e477 (plain)
1
2
3
4
5
6
//@ check-fail
fn main() {
    let _: &str = & { String::from("hahah")};
    let _: &i32 = & { Box::new(1i32) };
    //~^ ERROR mismatched types
}