]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-57271.stderr
4f164624f7a537ec87aaf68ee8ca11dfa1da1630
[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 indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ObjectType` representable
11
12 error[E0072]: recursive type `TypeSignature` has infinite size
13   --> $DIR/issue-57271.rs:19:1
14    |
15 LL | pub enum TypeSignature {
16    | ^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
17 LL |     Base(BaseType),
18 LL |     Object(ObjectType),
19    |            ---------- recursive without indirection
20    |
21    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `TypeSignature` representable
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0072`.