rust/tests/ui/enum/nested-enum.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
317 B
Rust
Raw Normal View History

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() { }