diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-05 19:19:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-08 23:06:31 +0300 |
| commit | b3f75353a237f3623483c1e237be480140a8c3e1 (patch) | |
| tree | a769f4d38cf7d807a27d8685f26d77db3b0b5f91 /tests/ui/impl-trait/nested_impl_trait.rs | |
| parent | d4f880f8ce832cd7560bb2f1ebc34f967055ffd7 (diff) | |
| download | rust-b3f75353a237f3623483c1e237be480140a8c3e1.tar.gz rust-b3f75353a237f3623483c1e237be480140a8c3e1.zip | |
UI tests: add missing diagnostic kinds where possible
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 760102794c3..3e985b5dcca 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` is not allowed in `fn` pointer +//~| ERROR `impl Trait` is not allowed in `fn` pointer fn bad_in_arg_position(_: impl Into<impl Debug>) { } //~^ ERROR nested `impl Trait` is not allowed |
