Part of the error for lack of type annotations can give a hint that doesn't work #83606
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
The first half is correct, but the problem is that final suggestion. If you try it:
you get another error because the suggestion can't work because of the
impl std::fmt::Display
:The text was updated successfully, but these errors were encountered: