Added support for type placeholders (explicit requested type

inference in a type with `_` ). This enables partial type inference.
This commit is contained in:
Marvin Löbel
2014-03-11 00:17:46 +01:00
parent 6c895d1d58
commit eb69eb36f8
10 changed files with 236 additions and 11 deletions

View File

@@ -830,8 +830,7 @@ pub enum Ty_ {
TyPath(Path, Option<OptVec<TyParamBound>>, NodeId), // for #7264; see above
TyTypeof(@Expr),
// TyInfer means the type should be inferred instead of it having been
// specified. This should only appear at the "top level" of a type and not
// nested in one.
// specified. This can appear anywhere in a type.
TyInfer,
}