aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/nonstatic_struct_elided.stderr
blob: 0ee1bfe0c01279f0e5e268276368377974a0a64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0726]: implicit elided lifetime not allowed here
 --> tests/ui/nonstatic_struct_elided.rs:6:19
  |
6 | async fn task(_x: Foo) {}
  |                   ^^^ expected lifetime parameter
  |
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<'_>
  |                           +++++++++