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
- Generics and bounds › Key
- Type system › Keys
- Key a map by a record
- Generics and bounds
- Type system › Ordering your own types
- Understand ordering your own types
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_boundshows the same from the installed toolchain, without a network.