min_const_generics: ty param in const incorrect help #76701
Labels
C-bug
Category: This is a bug.
const-generics-bad-diagnostics
An error is correctly emitted, but is confusing, for `min_const_generics`.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
emits
The help is incorrect here, as type parameters in constants are not supported at all with
min_const_generics
.The error is emitted here
rust/compiler/rustc_resolve/src/diagnostics.rs
Lines 469 to 485 in b5f55b7
We probably want to change
ParamInNonTrivialAnonConst
to instead contain anOption
which is onlySome
for const parameters.For type parameters we can instead emit a note saying
If you need more help feel free to ask either here on on zulip.
The text was updated successfully, but these errors were encountered: