error[E0275]: overflow assigning `Box<_>` to `_` --> $DIR/occurs-check.rs:3:9 | LL | f = Box::new(f); | ^^^^^^^^^^^ error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0275`.