@@ -67,28 +67,12 @@ LL | Self: Iterator<Item = Foo>,
67
67
|
68
68
= help: consider removing this trait bound
69
69
70
- error: this trait bound is already specified in the where clause
71
- --> $DIR/trait_duplication_in_bounds.rs:103:19
72
- |
73
- LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
74
- | ^^^^^
75
- |
76
- = help: consider removing this trait bound
77
-
78
70
error: these bounds contain repeated elements
79
71
--> $DIR/trait_duplication_in_bounds.rs:103:19
80
72
|
81
73
LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
82
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
83
75
84
- error: this trait bound is already specified in the where clause
85
- --> $DIR/trait_duplication_in_bounds.rs:109:12
86
- |
87
- LL | T: Clone + Clone + Clone + Copy,
88
- | ^^^^^
89
- |
90
- = help: consider removing this trait bound
91
-
92
76
error: these where clauses contain repeated elements
93
77
--> $DIR/trait_duplication_in_bounds.rs:109:12
94
78
|
@@ -107,14 +91,6 @@ error: these where clauses contain repeated elements
107
91
LL | Self: Clone + Clone + Clone;
108
92
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
109
93
110
- error: this trait bound is already specified in the where clause
111
- --> $DIR/trait_duplication_in_bounds.rs:158:28
112
- |
113
- LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
114
- | ^^^^^
115
- |
116
- = help: consider removing this trait bound
117
-
118
94
error: these bounds contain repeated elements
119
95
--> $DIR/trait_duplication_in_bounds.rs:158:28
120
96
|
@@ -127,41 +103,17 @@ error: these where clauses contain repeated elements
127
103
LL | T: Clone + Clone + Clone + Copy,
128
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
129
105
130
- error: this trait bound is already specified in the where clause
131
- --> $DIR/trait_duplication_in_bounds.rs:195:24
132
- |
133
- LL | fn good_generic<T: GenericTrait<u64> + GenericTrait<u32>>(arg0: T) {
134
- | ^^^^^^^^^^^^^^^^^
135
- |
136
- = help: consider removing this trait bound
137
-
138
- error: this trait bound is already specified in the where clause
139
- --> $DIR/trait_duplication_in_bounds.rs:199:23
140
- |
141
- LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
142
- | ^^^^^^^^^^^^^^^^^
143
- |
144
- = help: consider removing this trait bound
145
-
146
106
error: these bounds contain repeated elements
147
107
--> $DIR/trait_duplication_in_bounds.rs:199:23
148
108
|
149
109
LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
150
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u32> + GenericTrait<u64>`
151
111
152
- error: this trait bound is already specified in the where clause
153
- --> $DIR/trait_duplication_in_bounds.rs:207:26
154
- |
155
- LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
156
- | ^^^^^^^^^^^^^^^^^
157
- |
158
- = help: consider removing this trait bound
159
-
160
112
error: these bounds contain repeated elements
161
113
--> $DIR/trait_duplication_in_bounds.rs:207:26
162
114
|
163
115
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
164
116
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + foo::Clone`
165
117
166
- error: aborting due to 22 previous errors
118
+ error: aborting due to 16 previous errors
167
119
0 commit comments