error[E0308]: mismatched types
- --> $DIR/occurs-check-2.rs:17:9
+ --> $DIR/occurs-check-2.rs:7:9
|
LL | f = box g;
| ^^^^^
| |
| cyclic type of infinite size
- | help: try using a conversion method: `box g.to_string()`
+ | help: try using a conversion method: `(box g).to_string()`
error: aborting due to previous error