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