Improve error message for missing angle brackets in [_]::method
This commit is contained in:
parent
ed937594d3
commit
d92c683933
3 changed files with 17 additions and 0 deletions
|
@ -1211,6 +1211,8 @@ impl Expr {
|
|||
}
|
||||
}
|
||||
|
||||
ExprKind::Underscore => TyKind::Infer,
|
||||
|
||||
// This expression doesn't look like a type syntactically.
|
||||
_ => return None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue