fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
782 B26 linesraw
1error: `enum` definition cannot be nested inside `enum`
2  --> $DIR/nested-enum.rs:2:5
3   |
4LL |     enum Bar { Baz },
5   |     ^^^^------------
6   |     |
7   |     help: consider creating a new `enum` definition instead of nesting
8
9error: `struct` definition cannot be nested inside `enum`
10  --> $DIR/nested-enum.rs:3:5
11   |
12LL |     struct Quux { field: u8 },
13   |     ^^^^^^-------------------
14   |     |
15   |     help: consider creating a new `struct` definition instead of nesting
16
17error: `union` definition cannot be nested inside `enum`
18  --> $DIR/nested-enum.rs:4:5
19   |
20LL |     union Wibble { field: u8 },
21   |     ^^^^^---------------------
22   |     |
23   |     help: consider creating a new `union` definition instead of nesting
24
25error: aborting due to 3 previous errors
26