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 delegate! under trait attributed by #[async_trait], the expand order matters and it seems cannot compile.
IMO, only when delegate! expands before #[async_trait], can this compile and work correctly.
e.g. this won't compile
#[async_trait]implFooforBar{delegate!{
to self.inner {asyncfn baz(&self);
}}}
Is there a way to solve this problem?
The text was updated successfully, but these errors were encountered:
When using
delegate!
under trait attributed by#[async_trait]
, the expand order matters and it seems cannot compile.IMO, only when
delegate!
expands before#[async_trait]
, can this compile and work correctly.e.g. this won't compile
Is there a way to solve this problem?
The text was updated successfully, but these errors were encountered: