]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mod-subitem-as-enum-variant.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / 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 for this type [E0109]
9 }