associated-types-invalid-trait-ref diagnostics can be misleading #106876
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.
Code
code from
./ui/associated-types/associated-types-invalid-trait-ref-issue-18865.rs
The solution to the error is to use
Foo<isize>
foru
instead ofusize
but rustc totally misses that it looks like:applied:
=> new error:
=> applied
=> new error (duplicate?)
suggestion applied:
final error WHICH ACTUALLY HINTS TO THE ACTUAL PROBLEM :D
The text was updated successfully, but these errors were encountered: