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
3
3
|
4
4
LL | fn foo2<T: ?Sized + ?Sized>(a: T) {}
5
5
| ^^^^^^ ^^^^^^
6
6
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
9
9
|
10
10
LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: T) {}
11
11
| ^^^^^^ ^^^^^^
12
12
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
15
15
|
16
16
LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: T) {}
17
17
| ^^^^^^ ^^^^^^
18
18
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
21
21
|
22
22
LL | fn foo6(_: impl ?Sized + ?Sized) {}
23
23
| ^^^^^^ ^^^^^^
24
24
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
27
27
|
28
28
LL | fn foo7(_: impl ?Sized + ?Sized + Debug) {}
29
29
| ^^^^^^ ^^^^^^
30
30
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
33
33
|
34
34
LL | fn foo8(_: impl ?Sized + Debug + ?Sized ) {}
35
35
| ^^^^^^ ^^^^^^
36
36
37
37
error[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
39
39
|
40
40
LL | fn foo1<T: ?Sized>(a: T) {}
41
41
| - ^ doesn't have a size known at compile-time
@@ -54,7 +54,7 @@ LL | fn foo1<T: ?Sized>(a: &T) {}
54
54
| +
55
55
56
56
error[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
58
58
|
59
59
LL | fn foo2<T: ?Sized + ?Sized>(a: T) {}
60
60
| - ^ doesn't have a size known at compile-time
@@ -73,7 +73,7 @@ LL | fn foo2<T: ?Sized + ?Sized>(a: &T) {}
73
73
| +
74
74
75
75
error[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
77
77
|
78
78
LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: T) {}
79
79
| - ^ doesn't have a size known at compile-time
@@ -92,7 +92,7 @@ LL | fn foo3<T: ?Sized + ?Sized + Debug>(a: &T) {}
92
92
| +
93
93
94
94
error[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
96
96
|
97
97
LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: T) {}
98
98
| - ^ doesn't have a size known at compile-time
@@ -111,7 +111,7 @@ LL | fn foo4<T: ?Sized + Debug + ?Sized >(a: &T) {}
111
111
| +
112
112
113
113
error[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
115
115
|
116
116
LL | fn foo5(_: impl ?Sized) {}
117
117
| ^^^^^^^^^^^
@@ -131,7 +131,7 @@ LL | fn foo5(_: &impl ?Sized) {}
131
131
| +
132
132
133
133
error[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
135
135
|
136
136
LL | fn foo6(_: impl ?Sized + ?Sized) {}
137
137
| ^^^^^^^^^^^^^^^^^^^^
@@ -151,7 +151,7 @@ LL | fn foo6(_: &impl ?Sized + ?Sized) {}
151
151
| +
152
152
153
153
error[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
155
155
|
156
156
LL | fn foo7(_: impl ?Sized + ?Sized + Debug) {}
157
157
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -171,7 +171,7 @@ LL | fn foo7(_: &impl ?Sized + ?Sized + Debug) {}
171
171
| +
172
172
173
173
error[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
175
175
|
176
176
LL | fn foo8(_: impl ?Sized + Debug + ?Sized ) {}
177
177
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments