summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum/nested-enum.rs
blob: 80957b8a14c238184184a1c837cca51bd707d54c (plain)
1
2
3
4
5
6
7
8
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() { }