@@ -43,7 +43,7 @@ LL | type InReturnInTypeAlias<R> = fn() -> impl Debug;
43
43
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
44
44
= help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
45
45
46
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `fn` pointer params
46
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `fn` pointer parameters
47
47
--> $DIR/where-allowed.rs:18:40
48
48
|
49
49
LL | fn in_fn_parameter_in_parameters(_: fn(impl Debug)) { panic!() }
@@ -55,7 +55,7 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
55
55
LL | fn in_fn_return_in_parameters(_: fn() -> impl Debug) { panic!() }
56
56
| ^^^^^^^^^^
57
57
58
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `fn` pointer params
58
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `fn` pointer parameters
59
59
--> $DIR/where-allowed.rs:26:38
60
60
|
61
61
LL | fn in_fn_parameter_in_return() -> fn(impl Debug) { panic!() }
@@ -67,49 +67,49 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
67
67
LL | fn in_fn_return_in_return() -> fn() -> impl Debug { panic!() }
68
68
| ^^^^^^^^^^
69
69
70
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
70
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
71
71
--> $DIR/where-allowed.rs:34:49
72
72
|
73
73
LL | fn in_dyn_Fn_parameter_in_parameters(_: &dyn Fn(impl Debug)) { panic!() }
74
74
| ^^^^^^^^^^
75
75
76
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait return types
76
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the return types of `Fn` trait bounds
77
77
--> $DIR/where-allowed.rs:38:51
78
78
|
79
79
LL | fn in_dyn_Fn_return_in_parameters(_: &dyn Fn() -> impl Debug) { panic!() }
80
80
| ^^^^^^^^^^
81
81
82
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
82
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
83
83
--> $DIR/where-allowed.rs:42:55
84
84
|
85
85
LL | fn in_dyn_Fn_parameter_in_return() -> &'static dyn Fn(impl Debug) { panic!() }
86
86
| ^^^^^^^^^^
87
87
88
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
88
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
89
89
--> $DIR/where-allowed.rs:49:51
90
90
|
91
91
LL | fn in_impl_Fn_parameter_in_parameters(_: &impl Fn(impl Debug)) { panic!() }
92
92
| ^^^^^^^^^^
93
93
94
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait return types
94
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the return types of `Fn` trait bounds
95
95
--> $DIR/where-allowed.rs:54:53
96
96
|
97
97
LL | fn in_impl_Fn_return_in_parameters(_: &impl Fn() -> impl Debug) { panic!() }
98
98
| ^^^^^^^^^^
99
99
100
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
100
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
101
101
--> $DIR/where-allowed.rs:58:57
102
102
|
103
103
LL | fn in_impl_Fn_parameter_in_return() -> &'static impl Fn(impl Debug) { panic!() }
104
104
| ^^^^^^^^^^
105
105
106
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
106
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
107
107
--> $DIR/where-allowed.rs:66:38
108
108
|
109
109
LL | fn in_Fn_parameter_in_generics<F: Fn(impl Debug)> (_: F) { panic!() }
110
110
| ^^^^^^^^^^
111
111
112
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait return types
112
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the return types of `Fn` trait bounds
113
113
--> $DIR/where-allowed.rs:70:40
114
114
|
115
115
LL | fn in_Fn_return_in_generics<F: Fn() -> impl Debug> (_: F) { panic!() }
@@ -145,7 +145,7 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
145
145
LL | InTupleVariant(impl Debug),
146
146
| ^^^^^^^^^^
147
147
148
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `extern fn` params
148
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `extern fn` parameters
149
149
--> $DIR/where-allowed.rs:138:33
150
150
|
151
151
LL | fn in_foreign_parameters(_: impl Debug);
@@ -205,13 +205,13 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
205
205
LL | where T: PartialEq<impl Debug>
206
206
| ^^^^^^^^^^
207
207
208
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params
208
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the parameters of `Fn` trait bounds
209
209
--> $DIR/where-allowed.rs:205:17
210
210
|
211
211
LL | where T: Fn(impl Debug)
212
212
| ^^^^^^^^^^
213
213
214
- error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait return types
214
+ error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in the return types of `Fn` trait bounds
215
215
--> $DIR/where-allowed.rs:212:22
216
216
|
217
217
LL | where T: Fn() -> impl Debug
0 commit comments