]> git.lizzy.rs Git - rust.git/blob - src/test/ui/occurs-check-2.stderr
Auto merge of #85556 - FabianWolff:issue-85071, r=estebank,jackh726
[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 g;
5    |         ^^^^^ cyclic type of infinite size
6    |
7 help: try using a conversion method
8    |
9 LL |     f = (box g).to_string();
10    |         +     +++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.