mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-02 17:40:13 +00:00
24 lines
754 B
Text
24 lines
754 B
Text
|
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
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|