aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/nonstatic_struct_elided.stderr
diff options
context:
space:
mode:
authorBrezak <[email protected]>2025-07-23 19:20:09 +0200
committerBrezak <[email protected]>2025-07-23 19:33:51 +0200
commit1b42e624246f9355a91ef98ddf96d5af1b9b3687 (patch)
treeb61bc36289769ed6f67cd44efec46d985876ec97 /embassy-executor/tests/ui/nonstatic_struct_elided.stderr
parenta52965dc5d3d0c706310998d3eda8bc15cd45b02 (diff)
embassy-executor: explicitly return impl Future in task inner task
Diffstat (limited to 'embassy-executor/tests/ui/nonstatic_struct_elided.stderr')
-rw-r--r--embassy-executor/tests/ui/nonstatic_struct_elided.stderr14
1 files changed, 14 insertions, 0 deletions
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
8 | 8 |
96 | async fn task(_x: Foo<'_>) {} 96 | async fn task(_x: Foo<'_>) {}
10 | ++++ 10 | ++++
11
12error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds
13 --> tests/ui/nonstatic_struct_elided.rs:5:1
14 |
155 | #[embassy_executor::task]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^ opaque type defined here
176 | async fn task(_x: Foo) {}
18 | --- hidden type `impl Sized` captures the anonymous lifetime defined here
19 |
20 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
21help: add a `use<...>` bound to explicitly capture `'_`
22 |
235 | #[embassy_executor::task] + use<'_>
24 | +++++++++