mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
8 lines
302 B
Rust
8 lines
302 B
Rust
enum Foo {
|
|
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`
|
|
Bat,
|
|
}
|
|
|
|
fn main() { }
|