GAT's + const generics error yields Invalid suggestion #81175
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-trait-system
Area: Trait system
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.
The following code errors, and the error contains a suggestion how to fix the error:
The error message states:
Obviously, writing
trait Funk: Sized<const P: usize> {
is invalid syntax.The text was updated successfully, but these errors were encountered: