diff options
| author | Raul Alimbekov <[email protected]> | 2025-12-16 09:05:22 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-16 09:05:22 +0300 |
| commit | c9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch) | |
| tree | 6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /embassy-executor/tests/ui/nonstatic_struct_elided.stderr | |
| parent | cde24a3ef1117653ba5ed4184102b33f745782fb (diff) | |
| parent | 5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'embassy-executor/tests/ui/nonstatic_struct_elided.stderr')
| -rw-r--r-- | embassy-executor/tests/ui/nonstatic_struct_elided.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-executor/tests/ui/nonstatic_struct_elided.stderr b/embassy-executor/tests/ui/nonstatic_struct_elided.stderr index 0ee1bfe0c..e6829bf5d 100644 --- a/embassy-executor/tests/ui/nonstatic_struct_elided.stderr +++ b/embassy-executor/tests/ui/nonstatic_struct_elided.stderr | |||
| @@ -9,16 +9,16 @@ help: indicate the anonymous lifetime | |||
| 9 | 6 | async fn task(_x: Foo<'_>) {} | 9 | 6 | async fn task(_x: Foo<'_>) {} |
| 10 | | ++++ | 10 | | ++++ |
| 11 | 11 | ||
| 12 | error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds | 12 | error: lifetime may not live long enough |
| 13 | --> tests/ui/nonstatic_struct_elided.rs:5:1 | 13 | --> tests/ui/nonstatic_struct_elided.rs:5:1 |
| 14 | | | 14 | | |
| 15 | 5 | #[embassy_executor::task] | 15 | 5 | #[embassy_executor::task] |
| 16 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ opaque type defined here | 16 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'static` |
| 17 | 6 | async fn task(_x: Foo) {} | 17 | 6 | async fn task(_x: Foo) {} |
| 18 | | --- hidden type `impl Sized` captures the anonymous lifetime defined here | 18 | | -- has type `Foo<'1>` |
| 19 | | | 19 | | |
| 20 | = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) | 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 `'_` | 21 | help: to declare that `impl Sized` captures data from argument `_x`, you can add an explicit `'_` lifetime bound |
| 22 | | | 22 | | |
| 23 | 5 | #[embassy_executor::task] + use<'_> | 23 | 5 | #[embassy_executor::task] + '_ |
| 24 | | +++++++++ | 24 | | ++++ |
