1
Fork 0

fix #105366, suggest impl in the scenario of typo with fn

This commit is contained in:
yukang 2022-12-10 01:31:34 +08:00
parent 7701a7e7d4
commit b70a869d8f
6 changed files with 66 additions and 2 deletions

View file

@ -362,3 +362,6 @@ parse_fn_ptr_with_generics = function pointer types may not have generic paramet
parse_invalid_identifier_with_leading_number = expected identifier, found number literal
.label = identifiers cannot start with a number
parse_maybe_fn_typo_with_impl = you might have meant to write `impl` instead of `fn`
.suggestion = replace `fn` with `impl` here