]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum/nested-enum.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / enum / nested-enum.stderr
1 error: `enum` definition cannot be nested inside `enum`
2   --> $DIR/nested-enum.rs:2:5
3    |
4 LL |     enum Bar { Baz },
5    |     ^^^^------------
6    |     |
7    |     help: consider creating a new `enum` definition instead of nesting
8
9 error: `struct` definition cannot be nested inside `enum`
10   --> $DIR/nested-enum.rs:3:5
11    |
12 LL |     struct Quux { field: u8 },
13    |     ^^^^^^-------------------
14    |     |
15    |     help: consider creating a new `struct` definition instead of nesting
16
17 error: `union` definition cannot be nested inside `enum`
18   --> $DIR/nested-enum.rs:4:5
19    |
20 LL |     union Wibble { field: u8 },
21    |     ^^^^^---------------------
22    |     |
23    |     help: consider creating a new `union` definition instead of nesting
24
25 error: aborting due to 3 previous errors
26