2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/occurs-check-2.rs:7:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-08-24 19:39:40 -05:00
|
|
|
LL | f = Box::new(g);
|
2022-01-11 22:57:40 -06:00
|
|
|
| ^^^^^^^^^^^ cyclic type of infinite size
|
|
|
|
|
|
|
|
|
help: consider unboxing the value
|
|
|
|
|
|
|
|
|
LL | f = *Box::new(g);
|
|
|
|
| +
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|