2020-07-28 09:23:47 -05:00
|
|
|
error: this trait bound is already specified in the where clause
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:6:15
|
2020-07-28 09:23:47 -05:00
|
|
|
|
|
|
|
|
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
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:6:23
|
2020-07-28 09:23:47 -05:00
|
|
|
|
|
|
|
|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-09 22:45:01 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:35:15
|
2022-01-06 04:43:44 -06:00
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-09 22:45:01 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:49:15
|
2022-01-06 04:43:44 -06:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-09 22:45:01 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:55:15
|
2022-01-06 04:43:44 -06:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-09 22:45:01 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:55:25
|
2022-01-06 04:43:44 -06:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-09 22:45:01 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2022-01-19 23:38:48 -06:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:58:15
|
2022-01-09 22:45:01 -06:00
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
2022-01-19 23:38:48 -06:00
|
|
|
error: this trait bound is already specified in trait declaration
|
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:93:15
|
|
|
|
|
|
|
|
|
LL | Self: Iterator<Item = Foo>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2020-07-28 09:23:47 -05:00
|
|
|
|