]> git.lizzy.rs Git - rust.git/blob - tests/ui/mod-subitem-as-enum-variant.rs
Rollup merge of #106477 - Nathan-Fenner:nathanf/refined-error-span-trait-impl, r...
[rust.git] / tests / ui / mod-subitem-as-enum-variant.rs
1 mod Mod {
2     pub struct FakeVariant<T>(pub T);
3 }
4
5 fn main() {
6     Mod::FakeVariant::<i32>(0);
7     Mod::<i32>::FakeVariant(0);
8     //~^ ERROR type arguments are not allowed on module `Mod` [E0109]
9 }