]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-57271.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-57271.stderr
1 error[E0072]: recursive type `ObjectType` has infinite size
2   --> $DIR/issue-57271.rs:7:1
3    |
4 LL | pub enum ObjectType {
5    | ^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
6 LL |     Class(ClassTypeSignature),
7 LL |     Array(TypeSignature),
8    |           ------------- recursive without indirection
9    |
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ObjectType` representable
11    |
12 LL |     Array(Box<TypeSignature>),
13    |           ++++             +
14
15 error[E0072]: recursive type `TypeSignature` has infinite size
16   --> $DIR/issue-57271.rs:19:1
17    |
18 LL | pub enum TypeSignature {
19    | ^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
20 LL |     Base(BaseType),
21 LL |     Object(ObjectType),
22    |            ---------- recursive without indirection
23    |
24 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `TypeSignature` representable
25    |
26 LL |     Object(Box<ObjectType>),
27    |            ++++          +
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0072`.