]> git.proxmox.com Git - rustc.git/blob - src/test/ui/structs-enums/struct-rec/issue-84611.stderr
Update upstream source from tag 'upstream/1.56.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / structs-enums / struct-rec / issue-84611.stderr
1 error[E0072]: recursive type `Foo` has infinite size
2 --> $DIR/issue-84611.rs:1:1
3 |
4 LL | struct Foo<T> {
5 | ^^^^^^^^^^^^^ recursive type has infinite size
6 LL |
7 LL | x: Foo<[T; 1]>,
8 | ----------- recursive without indirection
9 |
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Foo` representable
11 |
12 LL | x: Box<Foo<[T; 1]>>,
13 | ++++ +
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0072`.