mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-26 08:42:32 +00:00
6 lines
256 B
Plaintext
6 lines
256 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_nested.rs:6:22
|
|
|
|
|
6 | async fn foo(_x: Foo<impl Sized + 'static>) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^
|