1- error: this type has already been used as a bound predicate
1+ error: type `T` has already been used as a bound predicate
22 --> tests/ui/type_repetition_in_bounds.rs:14:5
33 |
44LL | T: Clone,
@@ -11,37 +11,53 @@ note: the lint level is defined here
1111LL | #![deny(clippy::type_repetition_in_bounds)]
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
14- error: this type has already been used as a bound predicate
14+ error: type `Self` has already been used as a bound predicate
1515 --> tests/ui/type_repetition_in_bounds.rs:32:5
1616 |
1717LL | Self: Copy + Default + Ord,
1818 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1919 |
2020 = help: consider combining the bounds: `Self: Clone + Copy + Default + Ord`
2121
22- error: this type has already been used as a bound predicate
22+ error: type `T` has already been used as a bound predicate
2323 --> tests/ui/type_repetition_in_bounds.rs:107:5
2424 |
2525LL | T: Clone,
2626 | ^^^^^^^^
2727 |
2828 = help: consider combining the bounds: `T: ?Sized + Clone`
2929
30- error: this type has already been used as a bound predicate
30+ error: type `T` has already been used as a bound predicate
3131 --> tests/ui/type_repetition_in_bounds.rs:113:5
3232 |
3333LL | T: ?Sized,
3434 | ^^^^^^^^^
3535 |
3636 = help: consider combining the bounds: `T: Clone + ?Sized`
3737
38- error: this type has already been used as a bound predicate
38+ error: type `T` has already been used as a bound predicate
3939 --> tests/ui/type_repetition_in_bounds.rs:139:9
4040 |
4141LL | T: Trait<Option<usize>, Box<[String]>, bool> + 'static,
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343 |
44- = help: consider combining the bounds: `T: ?Sized + Trait<Option<usize>, Box<[String]>, bool>`
44+ = help: consider combining the bounds: `T: ?Sized + Trait<Option<usize>, Box<[String]>, bool> + 'static `
4545
46- error: aborting due to 5 previous errors
46+ error: type `K` has already been used as a bound predicate
47+ --> tests/ui/type_repetition_in_bounds.rs:148:5
48+ |
49+ LL | K: Clone,
50+ | ^^^^^^^^
51+ |
52+ = help: consider combining the bounds: `K: 'a + Clone`
53+
54+ error: type `Vec<T>` has already been used as a bound predicate
55+ --> tests/ui/type_repetition_in_bounds.rs:157:5
56+ |
57+ LL | Vec<T>: Clone,
58+ | ^^^^^^^^^^^^^
59+ |
60+ = help: consider combining the bounds: `Vec<T>: Clone + Clone`
61+
62+ error: aborting due to 7 previous errors
4763
0 commit comments