ty::TyFloat(..) |
ty::TyError |
ty::TyStr |
+ ty::TyNever |
ty::TyParam(_) => {
// WfScalar, WfParameter, etc
}
// types appearing in the fn signature
}
+ ty::TyAnon(..) => {
+ // all of the requirements on type parameters
+ // should've been checked by the instantiation
+ // of whatever returned this exact `impl Trait`.
+ }
+
ty::TyTrait(ref data) => {
// WfObject
//