]> git.lizzy.rs Git - rust.git/blob - tests/ui/occurs-check.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / occurs-check.stderr
1 error[E0308]: mismatched types
2   --> $DIR/occurs-check.rs:5:9
3    |
4 LL |     f = Box::new(f);
5    |         ^^^^^^^^^^^ cyclic type of infinite size
6    |
7 help: consider unboxing the value
8    |
9 LL |     f = *Box::new(f);
10    |         +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.