//@ check-pass enum Foo { Variant, Variant2(), Variant3{}, } struct Bar; struct Bar2(); struct Bar3 {} fn main() { let _ = Foo::Variant::<1>; let _ = Foo::Variant2::<1>(); let _ = Foo::Variant3::<1>{}; let _ = Foo::<1>::Variant; let _ = Foo::<1>::Variant2(); let _ = Foo::<1>::Variant3{}; let _ = Bar::<1>; let _ = Bar2::<1>(); let _ = Bar3::<1>{}; }