]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-recursive.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / type / type-recursive.stderr
1 error[E0072]: recursive type `t1` has infinite size
2   --> $DIR/type-recursive.rs:11:1
3    |
4 LL | struct t1 { //~ ERROR E0072
5    | ^^^^^^^^^ recursive type has infinite size
6 LL |     foo: isize,
7 LL |     foolish: t1
8    |     ----------- recursive without indirection
9    |
10    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `t1` representable
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0072`.