1
Fork 0

Recover fn keyword as Fn trait in bounds

This commit is contained in:
Michael Goulet 2022-12-27 06:14:40 +00:00
parent caa64e5b5e
commit aff403cf68
9 changed files with 148 additions and 79 deletions

View file

@ -365,3 +365,6 @@ parse_invalid_identifier_with_leading_number = expected identifier, found number
parse_maybe_fn_typo_with_impl = you might have meant to write `impl` instead of `fn`
.suggestion = replace `fn` with `impl` here
parse_expected_fn_path_found_fn_keyword = expected identifier, found keyword `fn`
.suggestion = use `Fn` to refer to the trait