Poor error message when using self: Box<Self>
#64199
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code produces a very confusing error message.
I would expect it to mention that
consume
expectsBox<Foo>
butx
is only of typeFoo
.The text was updated successfully, but these errors were encountered: