mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-26 00:32:33 +00:00
6 lines
247 B
Plaintext
6 lines
247 B
Plaintext
error: `impl Trait` is not allowed in task arguments. It is syntax sugar for generics, and tasks can't be generic.
|
|
--> tests/ui/impl_trait_static.rs:4:18
|
|
|
|
|
4 | async fn foo(_x: impl Sized + 'static) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^
|