1
Fork 0

migrate maybe_recover_from_bad_type_plus diagnostic

This commit is contained in:
Christian Poveda 2022-05-16 17:16:27 -05:00
parent c52b9c10bf
commit 7e8517df61
No known key found for this signature in database
GPG key ID: 27525EF5E7420A50
2 changed files with 57 additions and 25 deletions

View file

@ -5,3 +5,12 @@ parser-struct-literal-body-without-path =
parser-maybe-report-ambiguous-plus =
ambiguous `+` in a type
.suggestion = use parentheses to disambiguate
parser-maybe-recover-from-bad-type-plus =
expected a path on the left-hand side of `+`, not `{$ty}`
parser-add-paren = try adding parentheses
parser-forgot-paren = perhaps you forgot parentheses?
parser-expect-path = expected a path