summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/infinite-recursive-type-impl-trait-return.stderr
blob: aa39d26feed1e3072d7cff06374264ce2c8660f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0072]: recursive type `DEF_ID` has infinite size
  --> $DIR/infinite-recursive-type-impl-trait-return.rs:7:5
   |
LL |     enum E {
   |     ^^^^^^ recursive type has infinite size
LL |
LL |         This(E),
   |              - recursive without indirection
   |
help: insert some indirection (e.g., a `DEF_ID` representable
   |
LL |         This(Box<E>),
   |              ++++ +

error: aborting due to previous error

For more information about this error, try `DEF_ID`.