11error: 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
33 |
44LL | fn deref_derefmut<T>(x: T) -> impl Deref<Target = T> + DerefMut<Target = T> {
55 | ^^^^^^^^^^^^^^^^^
@@ -13,7 +13,7 @@ LL + fn deref_derefmut<T>(x: T) -> impl DerefMut<Target = T> {
1313 |
1414
1515error: 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
1717 |
1818LL | fn generics_implied<U, W>() -> impl GenericTrait<W> + GenericSubtrait<U, W, U>
1919 | ^^^^^^^^^^^^^^^
@@ -25,7 +25,7 @@ LL + fn generics_implied<U, W>() -> impl GenericSubtrait<U, W, U>
2525 |
2626
2727error: 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
2929 |
3030LL | fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericTrait2<V> + GenericSubtrait<(), i32, V> {}
3131 | ^^^^^^^^^^^^^^^^^
@@ -37,7 +37,7 @@ LL + fn generics_implied_multi<V>() -> impl GenericTrait2<V> + GenericSubtrait<(
3737 |
3838
3939error: 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
4141 |
4242LL | fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericTrait2<V> + GenericSubtrait<(), i32, V> {}
4343 | ^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL + fn generics_implied_multi<V>() -> impl GenericTrait<i32> + GenericSubtrait<
4949 |
5050
5151error: 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
5353 |
5454LL | fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericTrait2<V> + GenericSubtrait<(), T, V>
5555 | ^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL + fn generics_implied_multi2<T, V>() -> impl GenericTrait2<V> + GenericSubtra
6161 |
6262
6363error: 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
6565 |
6666LL | fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericTrait2<V> + GenericSubtrait<(), T, V>
6767 | ^^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL + fn generics_implied_multi2<T, V>() -> impl GenericTrait<T> + GenericSubtrai
7373 |
7474
7575error: 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
7777 |
7878LL | fn generics_same() -> impl GenericTrait<i32> + GenericSubtrait<(), i32, ()> {}
7979 | ^^^^^^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL + fn generics_same() -> impl GenericSubtrait<(), i32, ()> {}
8585 |
8686
8787error: 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
8989 |
9090LL | fn f() -> impl Deref + DerefMut<Target = u8>;
9191 | ^^^^^
@@ -97,7 +97,7 @@ LL + fn f() -> impl DerefMut<Target = u8>;
9797 |
9898
9999error: 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
101101 |
102102LL | fn f() -> impl Deref + DerefMut<Target = u8> {
103103 | ^^^^^
@@ -109,7 +109,7 @@ LL + fn f() -> impl DerefMut<Target = u8> {
109109 |
110110
111111error: 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
113113 |
114114LL | fn f() -> impl Deref + DerefMut<Target = u8> {
115115 | ^^^^^
@@ -121,7 +121,7 @@ LL + fn f() -> impl DerefMut<Target = u8> {
121121 |
122122
123123error: 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
125125 |
126126LL | fn default_generic_param1() -> impl PartialEq + PartialOrd + Debug {}
127127 | ^^^^^^^^^
@@ -133,7 +133,7 @@ LL + fn default_generic_param1() -> impl PartialOrd + Debug {}
133133 |
134134
135135error: 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
137137 |
138138LL | fn default_generic_param2() -> impl PartialOrd + PartialEq + Debug {}
139139 | ^^^^^^^^^
@@ -145,7 +145,7 @@ LL + fn default_generic_param2() -> impl PartialOrd + Debug {}
145145 |
146146
147147error: 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
149149 |
150150LL | fn my_iter() -> impl Iterator<Item = u32> + DoubleEndedIterator {
151151 | ^^^^^^^^^^^^^^^^^^^^
@@ -157,7 +157,7 @@ LL + fn my_iter() -> impl DoubleEndedIterator<Item = u32> {
157157 |
158158
159159error: 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
161161 |
162162LL | fn f() -> impl Copy + Clone {
163163 | ^^^^^
@@ -169,7 +169,7 @@ LL + fn f() -> impl Copy {
169169 |
170170
171171error: 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
173173 |
174174LL | fn f2() -> impl Trait1<i32, U = i64> + Trait2<i32> {}
175175 | ^^^^^^^^^^^^^^^^^^^^
@@ -181,7 +181,7 @@ LL + fn f2() -> impl Trait2<i32, U = i64> {}
181181 |
182182
183183error: 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
185185 |
186186LL | fn f3() -> impl Trait3<i8, i16, i64, X = i32, Y = i128> + Trait4<i8, X = i32> {}
187187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments