summaryrefslogtreecommitdiffstats
path: root/tests/ui/occurs-check-2.stderr
blob: 7b6fb9fafa20258bc5a1a6ce96a9258d3ed19ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/occurs-check-2.rs:7:9
   |
LL |     f = Box::new(g);
   |         ^^^^^^^^^^^ cyclic type of infinite size
   |
help: consider unboxing the value
   |
LL |     f = *Box::new(g);
   |         +

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.