1 error: `enum` definition cannot be nested inside `enum`
2 --> $DIR/nested-enum.rs:2:5
7 | help: consider creating a new `enum` definition instead of nesting
9 error: `struct` definition cannot be nested inside `enum`
10 --> $DIR/nested-enum.rs:3:5
12 LL | struct Quux { field: u8 },
13 | ^^^^^^-------------------
15 | help: consider creating a new `struct` definition instead of nesting
17 error: `union` definition cannot be nested inside `enum`
18 --> $DIR/nested-enum.rs:4:5
20 LL | union Wibble { field: u8 },
21 | ^^^^^---------------------
23 | help: consider creating a new `union` definition instead of nesting
25 error: aborting due to 3 previous errors