Open
Description
For example, see documentation for the Ord
trait from the standard library:
pub trait Ord: Eq + PartialOrd<Self> {
fn cmp(&self, other: &Self) -> Ordering;
fn max(self, other: Self) -> Self { ... }
fn min(self, other: Self) -> Self { ... }
fn clamp(self, min: Self, max: Self) -> Self
where
Self: PartialOrd<Self>,
// ^^^^^^^^^^^^^^^^ - this bound is already specified above
{ ... }
}
This is slightly confusing IMO.
Related to #91187