1
- error: this type has already been used as a bound predicate
1
+ error: type `T` has already been used as a bound predicate
2
2
--> tests/ui/type_repetition_in_bounds.rs:14:5
3
3
|
4
4
LL | T: Clone,
@@ -11,37 +11,53 @@ note: the lint level is defined here
11
11
LL | #![deny(clippy::type_repetition_in_bounds)]
12
12
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
13
14
- error: this type has already been used as a bound predicate
14
+ error: type `Self` has already been used as a bound predicate
15
15
--> tests/ui/type_repetition_in_bounds.rs:32:5
16
16
|
17
17
LL | Self: Copy + Default + Ord,
18
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
19
19
|
20
20
= help: consider combining the bounds: `Self: Clone + Copy + Default + Ord`
21
21
22
- error: this type has already been used as a bound predicate
22
+ error: type `T` has already been used as a bound predicate
23
23
--> tests/ui/type_repetition_in_bounds.rs:107:5
24
24
|
25
25
LL | T: Clone,
26
26
| ^^^^^^^^
27
27
|
28
28
= help: consider combining the bounds: `T: ?Sized + Clone`
29
29
30
- error: this type has already been used as a bound predicate
30
+ error: type `T` has already been used as a bound predicate
31
31
--> tests/ui/type_repetition_in_bounds.rs:113:5
32
32
|
33
33
LL | T: ?Sized,
34
34
| ^^^^^^^^^
35
35
|
36
36
= help: consider combining the bounds: `T: Clone + ?Sized`
37
37
38
- error: this type has already been used as a bound predicate
38
+ error: type `T` has already been used as a bound predicate
39
39
--> tests/ui/type_repetition_in_bounds.rs:139:9
40
40
|
41
41
LL | T: Trait<Option<usize>, Box<[String]>, bool> + 'static,
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
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 `
45
45
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
47
63
0 commit comments