1
1
error: this bound is already specified as the supertrait of `DerefMut<Target = T>`
2
- --> $DIR/implied_bounds_in_impls.rs:13 :36
2
+ --> $DIR/implied_bounds_in_impls.rs:12 :36
3
3
|
4
4
LL | fn deref_derefmut<T>(x: T) -> impl Deref<Target = T> + DerefMut<Target = T> {
5
5
| ^^^^^^^^^^^^^^^^^
@@ -13,7 +13,7 @@ LL + fn deref_derefmut<T>(x: T) -> impl DerefMut<Target = T> {
13
13
|
14
14
15
15
error: this bound is already specified as the supertrait of `GenericSubtrait<U, W, U>`
16
- --> $DIR/implied_bounds_in_impls.rs:30 :37
16
+ --> $DIR/implied_bounds_in_impls.rs:29 :37
17
17
|
18
18
LL | fn generics_implied<U, W>() -> impl GenericTrait<W> + GenericSubtrait<U, W, U>
19
19
| ^^^^^^^^^^^^^^^
@@ -25,7 +25,7 @@ LL + fn generics_implied<U, W>() -> impl GenericSubtrait<U, W, U>
25
25
|
26
26
27
27
error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, V>`
28
- --> $DIR/implied_bounds_in_impls.rs:36 :40
28
+ --> $DIR/implied_bounds_in_impls.rs:35 :40
29
29
|
30
30
LL | fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericTrait2<V> + GenericSubtrait<(), i32, V> {}
31
31
| ^^^^^^^^^^^^^^^^^
@@ -37,7 +37,7 @@ LL + fn generics_implied_multi<V>() -> impl GenericTrait2<V> + GenericSubtrait<(
37
37
|
38
38
39
39
error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, V>`
40
- --> $DIR/implied_bounds_in_impls.rs:36 :60
40
+ --> $DIR/implied_bounds_in_impls.rs:35 :60
41
41
|
42
42
LL | fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericTrait2<V> + GenericSubtrait<(), i32, V> {}
43
43
| ^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL + fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericSubtrait<
49
49
|
50
50
51
51
error: this bound is already specified as the supertrait of `GenericSubtrait<(), T, V>`
52
- --> $DIR/implied_bounds_in_impls.rs:38 :44
52
+ --> $DIR/implied_bounds_in_impls.rs:37 :44
53
53
|
54
54
LL | fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericTrait2<V> + GenericSubtrait<(), T, V>
55
55
| ^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL + fn generics_implied_multi2<T, V>() -> impl GenericTrait2<V> + GenericSubtra
61
61
|
62
62
63
63
error: this bound is already specified as the supertrait of `GenericSubtrait<(), T, V>`
64
- --> $DIR/implied_bounds_in_impls.rs:38 :62
64
+ --> $DIR/implied_bounds_in_impls.rs:37 :62
65
65
|
66
66
LL | fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericTrait2<V> + GenericSubtrait<(), T, V>
67
67
| ^^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL + fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericSubtrai
73
73
|
74
74
75
75
error: this bound is already specified as the supertrait of `GenericSubtrait<(), i32, ()>`
76
- --> $DIR/implied_bounds_in_impls.rs:48 :28
76
+ --> $DIR/implied_bounds_in_impls.rs:47 :28
77
77
|
78
78
LL | fn generics_same() -> impl GenericTrait<i32> + GenericSubtrait<(), i32, ()> {}
79
79
| ^^^^^^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL + fn generics_same() -> impl GenericSubtrait<(), i32, ()> {}
85
85
|
86
86
87
87
error: this bound is already specified as the supertrait of `DerefMut<Target = u8>`
88
- --> $DIR/implied_bounds_in_impls.rs:52 :20
88
+ --> $DIR/implied_bounds_in_impls.rs:51 :20
89
89
|
90
90
LL | fn f() -> impl Deref + DerefMut<Target = u8>;
91
91
| ^^^^^
@@ -97,7 +97,7 @@ LL + fn f() -> impl DerefMut<Target = u8>;
97
97
|
98
98
99
99
error: this bound is already specified as the supertrait of `DerefMut<Target = u8>`
100
- --> $DIR/implied_bounds_in_impls.rs:57 :20
100
+ --> $DIR/implied_bounds_in_impls.rs:56 :20
101
101
|
102
102
LL | fn f() -> impl Deref + DerefMut<Target = u8> {
103
103
| ^^^^^
@@ -109,7 +109,7 @@ LL + fn f() -> impl DerefMut<Target = u8> {
109
109
|
110
110
111
111
error: this bound is already specified as the supertrait of `DerefMut<Target = u8>`
112
- --> $DIR/implied_bounds_in_impls.rs:63 :20
112
+ --> $DIR/implied_bounds_in_impls.rs:62 :20
113
113
|
114
114
LL | fn f() -> impl Deref + DerefMut<Target = u8> {
115
115
| ^^^^^
@@ -121,7 +121,7 @@ LL + fn f() -> impl DerefMut<Target = u8> {
121
121
|
122
122
123
123
error: this bound is already specified as the supertrait of `PartialOrd`
124
- --> $DIR/implied_bounds_in_impls.rs:74 :41
124
+ --> $DIR/implied_bounds_in_impls.rs:73 :41
125
125
|
126
126
LL | fn default_generic_param1() -> impl PartialEq + PartialOrd + Debug {}
127
127
| ^^^^^^^^^
@@ -133,7 +133,7 @@ LL + fn default_generic_param1() -> impl PartialOrd + Debug {}
133
133
|
134
134
135
135
error: this bound is already specified as the supertrait of `PartialOrd`
136
- --> $DIR/implied_bounds_in_impls.rs:75 :54
136
+ --> $DIR/implied_bounds_in_impls.rs:74 :54
137
137
|
138
138
LL | fn default_generic_param2() -> impl PartialOrd + PartialEq + Debug {}
139
139
| ^^^^^^^^^
@@ -145,7 +145,7 @@ LL + fn default_generic_param2() -> impl PartialOrd + Debug {}
145
145
|
146
146
147
147
error: this bound is already specified as the supertrait of `DoubleEndedIterator`
148
- --> $DIR/implied_bounds_in_impls.rs:88 :26
148
+ --> $DIR/implied_bounds_in_impls.rs:87 :26
149
149
|
150
150
LL | fn my_iter() -> impl Iterator<Item = u32> + DoubleEndedIterator {
151
151
| ^^^^^^^^^^^^^^^^^^^^
@@ -157,7 +157,7 @@ LL + fn my_iter() -> impl DoubleEndedIterator<Item = u32> {
157
157
|
158
158
159
159
error: this bound is already specified as the supertrait of `Copy`
160
- --> $DIR/implied_bounds_in_impls.rs:93 :27
160
+ --> $DIR/implied_bounds_in_impls.rs:92 :27
161
161
|
162
162
LL | fn f() -> impl Copy + Clone {
163
163
| ^^^^^
@@ -169,7 +169,7 @@ LL + fn f() -> impl Copy {
169
169
|
170
170
171
171
error: this bound is already specified as the supertrait of `Trait2<i32>`
172
- --> $DIR/implied_bounds_in_impls.rs:107 :21
172
+ --> $DIR/implied_bounds_in_impls.rs:106 :21
173
173
|
174
174
LL | fn f2() -> impl Trait1<i32, U = i64> + Trait2<i32> {}
175
175
| ^^^^^^^^^^^^^^^^^^^^
@@ -181,7 +181,7 @@ LL + fn f2() -> impl Trait2<i32, U = i64> {}
181
181
|
182
182
183
183
error: this bound is already specified as the supertrait of `Trait4<i8, X = i32>`
184
- --> $DIR/implied_bounds_in_impls.rs:122 :21
184
+ --> $DIR/implied_bounds_in_impls.rs:121 :21
185
185
|
186
186
LL | fn f3() -> impl Trait3<i8, i16, i64, X = i32, Y = i128> + Trait4<i8, X = i32> {}
187
187
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments