From 1b42e624246f9355a91ef98ddf96d5af1b9b3687 Mon Sep 17 00:00:00 2001 From: Brezak Date: Wed, 23 Jul 2025 19:20:09 +0200 Subject: embassy-executor: explicitly return impl Future in task inner task --- embassy-executor/tests/ui/nonstatic_struct_elided.stderr | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'embassy-executor/tests/ui') diff --git a/embassy-executor/tests/ui/nonstatic_struct_elided.stderr b/embassy-executor/tests/ui/nonstatic_struct_elided.stderr index 099ef8b4e..0ee1bfe0c 100644 --- a/embassy-executor/tests/ui/nonstatic_struct_elided.stderr +++ b/embassy-executor/tests/ui/nonstatic_struct_elided.stderr @@ -8,3 +8,17 @@ help: indicate the anonymous lifetime | 6 | async fn task(_x: Foo<'_>) {} | ++++ + +error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds + --> tests/ui/nonstatic_struct_elided.rs:5:1 + | +5 | #[embassy_executor::task] + | ^^^^^^^^^^^^^^^^^^^^^^^^^ opaque type defined here +6 | async fn task(_x: Foo) {} + | --- hidden type `impl Sized` captures the anonymous lifetime defined here + | + = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) +help: add a `use<...>` bound to explicitly capture `'_` + | +5 | #[embassy_executor::task] + use<'_> + | +++++++++ -- cgit