diff options
| author | Brezak <[email protected]> | 2025-07-23 19:20:09 +0200 |
|---|---|---|
| committer | Brezak <[email protected]> | 2025-07-23 19:33:51 +0200 |
| commit | 1b42e624246f9355a91ef98ddf96d5af1b9b3687 (patch) | |
| tree | b61bc36289769ed6f67cd44efec46d985876ec97 /embassy-executor/tests/ui | |
| parent | a52965dc5d3d0c706310998d3eda8bc15cd45b02 (diff) | |
embassy-executor: explicitly return impl Future in task inner task
Diffstat (limited to 'embassy-executor/tests/ui')
| -rw-r--r-- | embassy-executor/tests/ui/nonstatic_struct_elided.stderr | 14 |
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 | | |
| 9 | 6 | async fn task(_x: Foo<'_>) {} | 9 | 6 | async fn task(_x: Foo<'_>) {} |
| 10 | | ++++ | 10 | | ++++ |
| 11 | |||
| 12 | error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds | ||
| 13 | --> tests/ui/nonstatic_struct_elided.rs:5:1 | ||
| 14 | | | ||
| 15 | 5 | #[embassy_executor::task] | ||
| 16 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ opaque type defined here | ||
| 17 | 6 | 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) | ||
| 21 | help: add a `use<...>` bound to explicitly capture `'_` | ||
| 22 | | | ||
| 23 | 5 | #[embassy_executor::task] + use<'_> | ||
| 24 | | +++++++++ | ||
