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
When using #[tokio::main] on a function with generics, the generics are
skipped. Simply using #vis #sig instead of #vis fn #name(#inputs) #ret
fixes the problem.
Fixes#2176
Version
tokio v0.2.10
tokio-macros v0.2.3
tokio-util v0.2.0
Subcrates
macros
Description
When using
#[tokio::main]
on a function with generics, the generics are skipped.I tried this code:
I expected to see this happen (on expansion):
Instead, this happened (on expansion):
The text was updated successfully, but these errors were encountered: