1- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
2- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:12 :12
1+ error[E0203]: duplicate relaxed `Sized` bounds
2+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:11 :12
33 |
44LL | fn foo2<T: ?Sized + ?Sized>(a: T) {}
55 | ^^^^^^ ^^^^^^
66
7- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
8- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:16 :12
7+ error[E0203]: duplicate relaxed `Sized` bounds
8+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:15 :12
99 |
1010LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: T) {}
1111 | ^^^^^^ ^^^^^^
1212
13- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
14- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:20 :12
13+ error[E0203]: duplicate relaxed `Sized` bounds
14+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:19 :12
1515 |
1616LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: T) {}
1717 | ^^^^^^ ^^^^^^
1818
19- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
20- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:27 :17
19+ error[E0203]: duplicate relaxed `Sized` bounds
20+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:26 :17
2121 |
2222LL | fn foo6(_: impl ?Sized + ?Sized) {}
2323 | ^^^^^^ ^^^^^^
2424
25- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
26- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:31 :17
25+ error[E0203]: duplicate relaxed `Sized` bounds
26+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:30 :17
2727 |
2828LL | fn foo7(_: impl ?Sized + ?Sized + Debug) {}
2929 | ^^^^^^ ^^^^^^
3030
31- error[E0203]: type parameter has more than one relaxed default bound, only one is supported
32- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:35 :17
31+ error[E0203]: duplicate relaxed `Sized` bounds
32+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:34 :17
3333 |
3434LL | fn foo8(_: impl ?Sized + Debug + ?Sized ) {}
3535 | ^^^^^^ ^^^^^^
3636
3737error[E0277]: the size for values of type `T` cannot be known at compilation time
38- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:9 :23
38+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:8 :23
3939 |
4040LL | fn foo1<T: ?Sized>(a: T) {}
4141 | - ^ doesn't have a size known at compile-time
@@ -54,7 +54,7 @@ LL | fn foo1<T: ?Sized>(a: &T) {}
5454 | +
5555
5656error[E0277]: the size for values of type `T` cannot be known at compilation time
57- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:12 :32
57+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:11 :32
5858 |
5959LL | fn foo2<T: ?Sized + ?Sized>(a: T) {}
6060 | - ^ doesn't have a size known at compile-time
@@ -73,7 +73,7 @@ LL | fn foo2<T: ?Sized + ?Sized>(a: &T) {}
7373 | +
7474
7575error[E0277]: the size for values of type `T` cannot be known at compilation time
76- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:16 :40
76+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:15 :40
7777 |
7878LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: T) {}
7979 | - ^ doesn't have a size known at compile-time
@@ -92,7 +92,7 @@ LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: &T) {}
9292 | +
9393
9494error[E0277]: the size for values of type `T` cannot be known at compilation time
95- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:20 :41
95+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:19 :41
9696 |
9797LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: T) {}
9898 | - ^ doesn't have a size known at compile-time
@@ -111,7 +111,7 @@ LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: &T) {}
111111 | +
112112
113113error[E0277]: the size for values of type `impl ?Sized` cannot be known at compilation time
114- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:24 :12
114+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:23 :12
115115 |
116116LL | fn foo5(_: impl ?Sized) {}
117117 | ^^^^^^^^^^^
@@ -131,7 +131,7 @@ LL | fn foo5(_: &impl ?Sized) {}
131131 | +
132132
133133error[E0277]: the size for values of type `impl ?Sized + ?Sized` cannot be known at compilation time
134- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:27 :12
134+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:26 :12
135135 |
136136LL | fn foo6(_: impl ?Sized + ?Sized) {}
137137 | ^^^^^^^^^^^^^^^^^^^^
@@ -151,7 +151,7 @@ LL | fn foo6(_: &impl ?Sized + ?Sized) {}
151151 | +
152152
153153error[E0277]: the size for values of type `impl ?Sized + ?Sized + Debug` cannot be known at compilation time
154- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:31 :12
154+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:30 :12
155155 |
156156LL | fn foo7(_: impl ?Sized + ?Sized + Debug) {}
157157 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -171,7 +171,7 @@ LL | fn foo7(_: &impl ?Sized + ?Sized + Debug) {}
171171 | +
172172
173173error[E0277]: the size for values of type `impl ?Sized + Debug + ?Sized` cannot be known at compilation time
174- --> $DIR/bad-suggestionf-for-repeated-unsized-bound-127441 .rs:35 :12
174+ --> $DIR/fix-dyn-sized-fn-param-sugg .rs:34 :12
175175 |
176176LL | fn foo8(_: impl ?Sized + Debug + ?Sized ) {}
177177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments