]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-3779.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / issues / issue-3779.stderr
CommitLineData
ff7c6d11 1error[E0072]: recursive type `S` has infinite size
0731742a 2 --> $DIR/issue-3779.rs:1:1
ff7c6d11 3 |
0531ce1d 4LL | struct S {
ff7c6d11 5 | ^^^^^^^^ recursive type has infinite size
532ac7d7 6LL |
0531ce1d 7LL | element: Option<S>
f035d41b 8 | --------- recursive without indirection
ff7c6d11 9 |
f035d41b
XL
10help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `S` representable
11 |
12LL | element: Box<Option<S>>
13 | ^^^^ ^
ff7c6d11
XL
14
15error: aborting due to previous error
16
0531ce1d 17For more information about this error, try `rustc --explain E0072`.