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
147 B
Rust
Raw Normal View History

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