rustc: add TyAnon (impl Trait) to the typesystem.

This commit is contained in:
Eduard Burtescu 2016-07-22 18:56:22 +03:00
parent f0baec691f
commit ef11d4e3c7
40 changed files with 250 additions and 85 deletions

View file

@ -596,7 +596,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
}
ty::TyParam(..) | ty::TyInfer(..) | ty::TyError |
ty::TyClosure(..) | ty::TyProjection(..) |
ty::TyClosure(..) | ty::TyProjection(..) | ty::TyAnon(..) |
ty::TyFnDef(..) => {
bug!("Unexpected type in foreign function")
}