From 88956f2df728665782f4359f3c89f5610c8ff1bc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 5 Oct 2023 23:26:33 -0400 Subject: [PATCH] Update ui test suite to nightly-2023-10-06 --- tests/ui/impl-trait.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/impl-trait.stderr b/tests/ui/impl-trait.stderr index 5096925..60766fa 100644 --- a/tests/ui/impl-trait.stderr +++ b/tests/ui/impl-trait.stderr @@ -10,13 +10,13 @@ help: consider using the `'static` lifetime 9 | pub fn ref_cast(s: impl AsRef) -> &'static Self; | +++++++ -error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in paths +error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in paths --> tests/ui/impl-trait.rs:9:24 | 9 | pub fn ref_cast(s: impl AsRef) -> &Self; | ^^^^^^^^^^^^^^^ -error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in paths +error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in paths --> tests/ui/impl-trait.rs:12:26 | 12 | pub fn ref_cast2(s: &impl AsRef) -> &Self;