error: this bound is already specified as the supertrait of `DerefMut` --> $DIR/implied_bounds_in_impls.rs:13:36 | LL | fn deref_derefmut(x: T) -> impl Deref + DerefMut { | ^^^^^^^^^^^^^^^^^ | = note: `-D clippy::implied-bounds-in-impls` implied by `-D warnings` help: try removing this bound | LL - fn deref_derefmut(x: T) -> impl Deref + DerefMut { LL + fn deref_derefmut(x: T) -> impl DerefMut { | error: this bound is already specified as the supertrait of `GenericSubtrait` --> $DIR/implied_bounds_in_impls.rs:30:37 | LL | fn generics_implied() -> impl GenericTrait + GenericSubtrait | ^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_implied() -> impl GenericTrait + GenericSubtrait LL + fn generics_implied() -> impl GenericSubtrait | error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, V>` --> $DIR/implied_bounds_in_impls.rs:36:40 | LL | fn generics_implied_multi() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), i32, V> {} | ^^^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_implied_multi() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), i32, V> {} LL + fn generics_implied_multi() -> impl GenericTrait2 + GenericSubtrait<(), i32, V> {} | error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, V>` --> $DIR/implied_bounds_in_impls.rs:36:60 | LL | fn generics_implied_multi() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), i32, V> {} | ^^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_implied_multi() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), i32, V> {} LL + fn generics_implied_multi() -> impl GenericTrait + GenericSubtrait<(), i32, V> {} | error: this bound is already specified as the supertrait of `GenericSubtrait<(), T, V>` --> $DIR/implied_bounds_in_impls.rs:38:44 | LL | fn generics_implied_multi2() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), T, V> | ^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_implied_multi2() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), T, V> LL + fn generics_implied_multi2() -> impl GenericTrait2 + GenericSubtrait<(), T, V> | error: this bound is already specified as the supertrait of `GenericSubtrait<(), T, V>` --> $DIR/implied_bounds_in_impls.rs:38:62 | LL | fn generics_implied_multi2() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), T, V> | ^^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_implied_multi2() -> impl GenericTrait + GenericTrait2 + GenericSubtrait<(), T, V> LL + fn generics_implied_multi2() -> impl GenericTrait + GenericSubtrait<(), T, V> | error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, ()>` --> $DIR/implied_bounds_in_impls.rs:48:28 | LL | fn generics_same() -> impl GenericTrait + GenericSubtrait<(), i32, ()> {} | ^^^^^^^^^^^^^^^^^ | help: try removing this bound | LL - fn generics_same() -> impl GenericTrait + GenericSubtrait<(), i32, ()> {} LL + fn generics_same() -> impl GenericSubtrait<(), i32, ()> {} | error: this bound is already specified as the supertrait of `DerefMut` --> $DIR/implied_bounds_in_impls.rs:52:20 | LL | fn f() -> impl Deref + DerefMut; | ^^^^^ | help: try removing this bound | LL - fn f() -> impl Deref + DerefMut; LL + fn f() -> impl DerefMut; | error: this bound is already specified as the supertrait of `DerefMut` --> $DIR/implied_bounds_in_impls.rs:57:20 | LL | fn f() -> impl Deref + DerefMut { | ^^^^^ | help: try removing this bound | LL - fn f() -> impl Deref + DerefMut { LL + fn f() -> impl DerefMut { | error: this bound is already specified as the supertrait of `DerefMut` --> $DIR/implied_bounds_in_impls.rs:63:20 | LL | fn f() -> impl Deref + DerefMut { | ^^^^^ | help: try removing this bound | LL - fn f() -> impl Deref + DerefMut { LL + fn f() -> impl DerefMut { | error: this bound is already specified as the supertrait of `PartialOrd` --> $DIR/implied_bounds_in_impls.rs:74:41 | LL | fn default_generic_param1() -> impl PartialEq + PartialOrd + Debug {} | ^^^^^^^^^ | help: try removing this bound | LL - fn default_generic_param1() -> impl PartialEq + PartialOrd + Debug {} LL + fn default_generic_param1() -> impl PartialOrd + Debug {} | error: this bound is already specified as the supertrait of `PartialOrd` --> $DIR/implied_bounds_in_impls.rs:75:54 | LL | fn default_generic_param2() -> impl PartialOrd + PartialEq + Debug {} | ^^^^^^^^^ | help: try removing this bound | LL - fn default_generic_param2() -> impl PartialOrd + PartialEq + Debug {} LL + fn default_generic_param2() -> impl PartialOrd + Debug {} | error: aborting due to 12 previous errors