fix #105366, suggest impl in the scenario of typo with fn
This commit is contained in:
parent
7701a7e7d4
commit
b70a869d8f
6 changed files with 66 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue