rust/tests/ui/coercion/coerce-block-tail.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
146 B
Rust
Raw Normal View History

2022-10-16 15:03:23 -05:00
// check-fail
fn main() {
let _: &str = & { String::from("hahah")};
let _: &i32 = & { Box::new(1i32) };
//~^ ERROR mismatched types
}