11error: this trait bound is already specified in the where clause
2- --> $DIR/trait_duplication_in_bounds_unfixable.rs:6 :15
2+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:7 :15
33 |
44LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
55 | ^^^^^
@@ -12,55 +12,55 @@ LL | #![deny(clippy::trait_duplication_in_bounds)]
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
1414error: this trait bound is already specified in the where clause
15- --> $DIR/trait_duplication_in_bounds_unfixable.rs:6 :23
15+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:7 :23
1616 |
1717LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
1818 | ^^^^^^^
1919 |
2020 = help: consider removing this trait bound
2121
2222error: this trait bound is already specified in trait declaration
23- --> $DIR/trait_duplication_in_bounds_unfixable.rs:37 :15
23+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:38 :15
2424 |
2525LL | Self: Default;
2626 | ^^^^^^^
2727 |
2828 = help: consider removing this trait bound
2929
3030error: this trait bound is already specified in trait declaration
31- --> $DIR/trait_duplication_in_bounds_unfixable.rs:52 :15
31+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:53 :15
3232 |
3333LL | Self: Default + Clone;
3434 | ^^^^^^^
3535 |
3636 = help: consider removing this trait bound
3737
3838error: this trait bound is already specified in trait declaration
39- --> $DIR/trait_duplication_in_bounds_unfixable.rs:59 :15
39+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:60 :15
4040 |
4141LL | Self: Default + Clone;
4242 | ^^^^^^^
4343 |
4444 = help: consider removing this trait bound
4545
4646error: this trait bound is already specified in trait declaration
47- --> $DIR/trait_duplication_in_bounds_unfixable.rs:59 :25
47+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:60 :25
4848 |
4949LL | Self: Default + Clone;
5050 | ^^^^^
5151 |
5252 = help: consider removing this trait bound
5353
5454error: this trait bound is already specified in trait declaration
55- --> $DIR/trait_duplication_in_bounds_unfixable.rs:64 :15
55+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:65 :15
5656 |
5757LL | Self: Default;
5858 | ^^^^^^^
5959 |
6060 = help: consider removing this trait bound
6161
6262error: this trait bound is already specified in trait declaration
63- --> $DIR/trait_duplication_in_bounds_unfixable.rs:100 :15
63+ --> $DIR/trait_duplication_in_bounds_unfixable.rs:101 :15
6464 |
6565LL | Self: Iterator<Item = Foo>,
6666 | ^^^^^^^^^^^^^^^^^^^^
0 commit comments