]> git.lizzy.rs Git - rust.git/blob - src/test/ui/occurs-check-2.stderr
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / occurs-check-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/occurs-check-2.rs:7:9
3    |
4 LL |     f = Box::new(g);
5    |         ^^^^^^^^^^^ cyclic type of infinite size
6    |
7 help: consider unboxing the value
8    |
9 LL |     f = *Box::new(g);
10    |         +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.