]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type/type-recursive.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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 some indirection (e.g., a `Box`, `Rc`, or `&`) to make `T1` representable
11 |
12 LL | foolish: Box<T1>
13 | ++++ +
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0072`.