1 error: this trait bound is already specified in the where clause
2 --> $DIR/trait_duplication_in_bounds.rs:6:15
4 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
7 note: the lint level is defined here
8 --> $DIR/trait_duplication_in_bounds.rs:1:9
10 LL | #![deny(clippy::trait_duplication_in_bounds)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: consider removing this trait bound
14 error: this trait bound is already specified in the where clause
15 --> $DIR/trait_duplication_in_bounds.rs:6:23
17 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
20 = help: consider removing this trait bound
22 error: this trait bound is already specified in trait declaration
23 --> $DIR/trait_duplication_in_bounds.rs:35:15
28 = help: consider removing this trait bound
30 error: this trait bound is already specified in trait declaration
31 --> $DIR/trait_duplication_in_bounds.rs:49:15
33 LL | Self: Default + Clone;
36 = help: consider removing this trait bound
38 error: this trait bound is already specified in trait declaration
39 --> $DIR/trait_duplication_in_bounds.rs:55:15
41 LL | Self: Default + Clone;
44 = help: consider removing this trait bound
46 error: this trait bound is already specified in trait declaration
47 --> $DIR/trait_duplication_in_bounds.rs:55:25
49 LL | Self: Default + Clone;
52 = help: consider removing this trait bound
54 error: this trait bound is already specified in trait declaration
55 --> $DIR/trait_duplication_in_bounds.rs:58:15
60 = help: consider removing this trait bound
62 error: this trait bound is already specified in trait declaration
63 --> $DIR/trait_duplication_in_bounds.rs:93:15
65 LL | Self: Iterator<Item = Foo>,
66 | ^^^^^^^^^^^^^^^^^^^^
68 = help: consider removing this trait bound
70 error: aborting due to 8 previous errors