Give a better diagnostic for missing parens in Fn* bounds

This commit is contained in:
clubby789 2023-10-27 19:51:51 +00:00
parent 9d6d5d4894
commit 904aceec7d
7 changed files with 73 additions and 0 deletions

View file

@ -270,6 +270,9 @@ parse_fn_ptr_with_generics = function pointer types may not have generic paramet
*[false] a
} `for` parameter list
parse_fn_trait_missing_paren = `Fn` bounds require arguments in parentheses
.add_paren = add the missing parentheses
parse_forgot_paren = perhaps you forgot parentheses?
parse_found_expr_would_be_stmt = expected expression, found `{$token}`