error: this type has already been used as a bound predicate --> $DIR/type_repetition_in_bounds.rs:8:5 | LL | T: Clone, | ^^^^^^^^ | note: the lint level is defined here --> $DIR/type_repetition_in_bounds.rs:1:9 | LL | #![deny(clippy::type_repetition_in_bounds)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: consider combining the bounds: `T: Copy + Clone` error: this type has already been used as a bound predicate --> $DIR/type_repetition_in_bounds.rs:25:5 | LL | Self: Copy + Default + Ord, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider combining the bounds: `Self: Clone + Copy + Default + Ord` error: this type has already been used as a bound predicate --> $DIR/type_repetition_in_bounds.rs:83:43 | LL | fn impl_trait(_: impl AsRef, _: impl AsRef) {} | ^^^^^^^^^^ | = help: consider combining the bounds: `impl AsRef: AsRef + AsRef` error: aborting due to 3 previous errors