rust/tests/ui/occurs-check.rs

6 lines
96 B
Rust

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