mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
13 lines
306 B
Plaintext
13 lines
306 B
Plaintext
error: structs are not allowed in struct definitions
|
|
--> $DIR/issue-101540.rs:2:5
|
|
|
|
|
LL | struct S1 {
|
|
| -- while parsing this struct
|
|
LL | struct S2 {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: consider creating a new `struct` definition instead of nesting
|
|
|
|
error: aborting due to previous error
|
|
|