1
Fork 0

parser: recover from where clauses placed before tuple struct bodies

This commit is contained in:
León Orell Valerian Liehr 2023-01-06 17:47:21 +01:00
parent b22c152958
commit 70ddde76df
No known key found for this signature in database
GPG key ID: CD75E31CE2CFD7D9
11 changed files with 266 additions and 17 deletions

View file

@ -368,3 +368,9 @@ parse_maybe_fn_typo_with_impl = you might have meant to write `impl` instead of
parse_expected_fn_path_found_fn_keyword = expected identifier, found keyword `fn`
.suggestion = use `Fn` to refer to the trait
parse_where_clause_before_tuple_struct_body = where clauses are not allowed before tuple struct bodies
.label = unexpected where clause
.name_label = while parsing this tuple struct
.body_label = the struct body
.suggestion = move the body before the where clause