2022-09-22 10:41:38 -05:00
|
|
|
error: structs are not allowed in struct definitions
|
|
|
|
--> $DIR/issue-101540.rs:2:5
|
|
|
|
|
|
2022-09-26 09:43:31 -05:00
|
|
|
LL | struct S1 {
|
|
|
|
| -- while parsing this struct
|
2022-09-22 11:24:30 -05:00
|
|
|
LL | struct S2 {
|
|
|
|
| ^^^^^^^^^
|
2022-09-22 11:02:50 -05:00
|
|
|
|
|
|
|
|
= help: consider creating a new `struct` definition instead of nesting
|
2022-09-22 10:41:38 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
2022-09-22 11:24:30 -05:00
|
|
|
|