@@ -43,7 +43,7 @@ LL | type InReturnInTypeAlias<R> = fn() -> impl Debug;
4343 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
4444 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
4545
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
4747 --> $DIR/where-allowed.rs:18:40
4848 |
4949LL | 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
5555LL | fn in_fn_return_in_parameters(_: fn() -> impl Debug) { panic!() }
5656 | ^^^^^^^^^^
5757
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
5959 --> $DIR/where-allowed.rs:26:38
6060 |
6161LL | 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
6767LL | fn in_fn_return_in_return() -> fn() -> impl Debug { panic!() }
6868 | ^^^^^^^^^^
6969
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
7171 --> $DIR/where-allowed.rs:34:49
7272 |
7373LL | fn in_dyn_Fn_parameter_in_parameters(_: &dyn Fn(impl Debug)) { panic!() }
7474 | ^^^^^^^^^^
7575
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
7777 --> $DIR/where-allowed.rs:38:51
7878 |
7979LL | fn in_dyn_Fn_return_in_parameters(_: &dyn Fn() -> impl Debug) { panic!() }
8080 | ^^^^^^^^^^
8181
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
8383 --> $DIR/where-allowed.rs:42:55
8484 |
8585LL | fn in_dyn_Fn_parameter_in_return() -> &'static dyn Fn(impl Debug) { panic!() }
8686 | ^^^^^^^^^^
8787
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
8989 --> $DIR/where-allowed.rs:49:51
9090 |
9191LL | fn in_impl_Fn_parameter_in_parameters(_: &impl Fn(impl Debug)) { panic!() }
9292 | ^^^^^^^^^^
9393
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
9595 --> $DIR/where-allowed.rs:54:53
9696 |
9797LL | fn in_impl_Fn_return_in_parameters(_: &impl Fn() -> impl Debug) { panic!() }
9898 | ^^^^^^^^^^
9999
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
101101 --> $DIR/where-allowed.rs:58:57
102102 |
103103LL | fn in_impl_Fn_parameter_in_return() -> &'static impl Fn(impl Debug) { panic!() }
104104 | ^^^^^^^^^^
105105
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
107107 --> $DIR/where-allowed.rs:66:38
108108 |
109109LL | fn in_Fn_parameter_in_generics<F: Fn(impl Debug)> (_: F) { panic!() }
110110 | ^^^^^^^^^^
111111
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
113113 --> $DIR/where-allowed.rs:70:40
114114 |
115115LL | 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
145145LL | InTupleVariant(impl Debug),
146146 | ^^^^^^^^^^
147147
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
149149 --> $DIR/where-allowed.rs:138:33
150150 |
151151LL | fn in_foreign_parameters(_: impl Debug);
@@ -205,13 +205,13 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
205205LL | where T: PartialEq<impl Debug>
206206 | ^^^^^^^^^^
207207
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
209209 --> $DIR/where-allowed.rs:205:17
210210 |
211211LL | where T: Fn(impl Debug)
212212 | ^^^^^^^^^^
213213
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
215215 --> $DIR/where-allowed.rs:212:22
216216 |
217217LL | where T: Fn() -> impl Debug
0 commit comments