]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-recursive.stderr
72bf372e561d6e2004038b96c1deb1e5e4ca7218
[rust.git] / src / test / ui / type / type-recursive.stderr
1 error[E0072]: recursive type `T1` has infinite size
2   --> $DIR/type-recursive.rs:1:1
3    |
4 LL | struct T1 {
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`.