diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-10-04 19:51:43 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-10-04 19:51:43 +0000 |
| commit | 041e54bd92abaadc8c26a619976f76a77d022a39 (patch) | |
| tree | c2c27e64e9246a8aa59e03ae76360ffc936eecab /tests/ui/impl-trait/nested_impl_trait.rs | |
| parent | 79f38b79147a5fb3c52d1fd1afc571226a77419c (diff) | |
| download | rust-041e54bd92abaadc8c26a619976f76a77d022a39.tar.gz rust-041e54bd92abaadc8c26a619976f76a77d022a39.zip | |
Tweak wording of E0562
Fix #80476.
Diffstat (limited to 'tests/ui/impl-trait/nested_impl_trait.rs')
| -rw-r--r-- | tests/ui/impl-trait/nested_impl_trait.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/impl-trait/nested_impl_trait.rs b/tests/ui/impl-trait/nested_impl_trait.rs index e95fab3b650..c036b9e367a 100644 --- a/tests/ui/impl-trait/nested_impl_trait.rs +++ b/tests/ui/impl-trait/nested_impl_trait.rs @@ -9,7 +9,7 @@ fn bad_in_ret_position(x: impl Into<u32>) -> impl Into<impl Debug> { x } fn bad_in_fn_syntax(x: fn() -> impl Into<impl Debug>) {} //~^ ERROR nested `impl Trait` is not allowed -//~| `impl Trait` only allowed in function and inherent method return types +//~| `impl Trait` only allowed in function and inherent method argument and return types fn bad_in_arg_position(_: impl Into<impl Debug>) { } //~^ ERROR nested `impl Trait` is not allowed |
