1 // Check that a generic type for an `enum` admits type application
2 // on both the type constructor and the generic type's variant.
4 // Also check that a type alias to said generic type admits type application
5 // on the type constructor but *NOT* the variant.
7 type Alias<T> = Option<T>;
10 let _ = Option::<u8>::None; // OK
11 let _ = Option::None::<u8>; // OK (Lint in future!)
12 let _ = Alias::<u8>::None; // OK
13 let _ = Alias::None::<u8>; //~ ERROR type arguments are not allowed on this type