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
use async_trait::async_trait;#[async_trait]pubtraitTrait{asyncfnhandle(&self);}pubenumEnum{Variant,}#[async_trait]implTraitforEnum{asyncfnhandle(&self){letEnum::Variant = self;// worksletSelf::Variant = self;// does not work}}
error[E0401]: can't use generic parameters from outer function --> tests/test.rs:552:17 |549 | impl Trait for Enum { | ---- `Self` type implicitly declared here, by this `impl`...552 | let Self::Variant = self; | ^^^^^^^^^^^^^ | | | use of generic parameter from outer function | use a type here instead
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: