2020-08-11 13:43:21 +00:00
|
|
|
error: this trait bound is already specified in the where clause
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:5:15
|
|
|
|
|
|
|
|
|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::trait_duplication_in_bounds)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in the where clause
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:5:23
|
|
|
|
|
|
|
|
|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:34:15
|
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:48:15
|
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:54:15
|
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:54:25
|
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:57:15
|
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2020-08-11 13:43:21 +00:00
|
|
|
|