summaryrefslogtreecommitdiffstats
path: root/tests/ui/occurs-check-2.stderr
blob: b68c3fa5bcc9c478240e2e8af4260a3867765f4e (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 previous error

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