diff options
Diffstat (limited to 'embassy-executor/tests')
| -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 | | +++++++++ | ||
