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