2019-11-23 03:41:12 +01:00
|
|
|
enum Foo {
|
2024-07-11 21:42:15 +00:00
|
|
|
enum Bar { Baz },
|
|
|
|
//~^ ERROR `enum` definition cannot be nested inside `enum`
|
|
|
|
struct Quux { field: u8 },
|
|
|
|
//~^ ERROR `struct` definition cannot be nested inside `enum`
|
|
|
|
union Wibble { field: u8 },
|
|
|
|
//~^ ERROR `union` definition cannot be nested inside `enum`
|
2019-11-23 03:41:12 +01:00
|
|
|
Bat,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|