summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mod-subitem-as-enum-variant.rs
blob: 959024c46f4ffe601e9e52c22b822f65abe15dbc (plain)
1
2
3
4
5
6
7
8
9
mod Mod {
    pub struct FakeVariant<T>(pub T);
}

fn main() {
    Mod::FakeVariant::<i32>(0);
    Mod::<i32>::FakeVariant(0);
    //~^ ERROR type arguments are not allowed on module `Mod` [E0109]
}