rust/tests/ui/occurs-check-2.rs

10 lines
120 B
Rust

fn main() {
let f;
let g;
g = f;
f = Box::new(g);
//~^ ERROR overflow assigning `Box<_>` to `_`
}