Add better diagnostic for const-generic impl Foo for S<N>
#82264
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Adding better diagnostics when we resolve to a
res::Err
for N.Original comment:
Ideally this would suggest "you meant to add a
const N
here and write this asA<{ N }>
".Originally posted by @estebank in #82055 (comment)
The text was updated successfully, but these errors were encountered: