Skip to content
Playground(another site)

bynk.generics.redundant_eq_bound

Warning A type parameter is declared both Eq and Ord (or Eq and Key); Ord and Key imply Eq, so the Eq is redundant. The diagnostic carries a machine-applicable fix that removes it (constrained-generics slices 1 and 2, warning).

No explanation is written for this code yet. The summary above is the compiler's own description of it.

In the Book

See also

  • The grammar rule it governs: fn_decl.
  • Every code in its category, Generics, on the diagnostic index.
  • bynk explain bynk.generics.redundant_eq_bound shows the same from the installed toolchain, without a network.