2019-11-22 20:41:12 -06:00
|
|
|
enum Foo {
|
2024-07-11 16:42:15 -05: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-22 20:41:12 -06:00
|
|
|
Bat,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|