You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: type parameter `F` is part of concrete type but not used in parameter list for the `impl Trait` type alias
--> src/main.rs:13:1
|
13 | #[real_async_trait]
| ^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `real_async_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
Manually typing out the async trait definition and implementation works:
It seems like the macro doesn't support implementing traits for structs with generic parameters like:
Compilation fails with the error
Manually typing out the async trait definition and implementation works:
The text was updated successfully, but these errors were encountered: