mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
12 lines
368 B
Plaintext
12 lines
368 B
Plaintext
error: task functions must not be generic
|
|
--> tests/ui/nonstatic_struct_generic.rs:6:1
|
|
|
|
|
6 | async fn task<'a>(_x: Foo<'a>) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Arguments for tasks must live forever. Try using the `'static` lifetime.
|
|
--> tests/ui/nonstatic_struct_generic.rs:6:27
|
|
|
|
|
6 | async fn task<'a>(_x: Foo<'a>) {}
|
|
| ^^
|