1
Fork 0

Improve error message for missing angle brackets in [_]::method

This commit is contained in:
Fabian Wolff 2021-10-01 23:03:28 +02:00
parent ed937594d3
commit d92c683933
3 changed files with 17 additions and 0 deletions

View file

@ -1211,6 +1211,8 @@ impl Expr {
}
}
ExprKind::Underscore => TyKind::Infer,
// This expression doesn't look like a type syntactically.
_ => return None,
};