Closed Stock84-dev closed 3 years ago
Macro doesn't handle when self is used as path.
self
use async_trait::async_trait; // 0.1.48 fn bar() {} #[async_trait] trait Foo { async fn bar(&self) { self::bar() } }
error[E0433]: failed to resolve: use of undeclared crate or module `__self` --> src/lib.rs:8:9 | 8 | self::bar() | ^^^^ use of undeclared crate or module `__self`
Playground
Good catch -- I've published a fix in 0.1.49.
Macro doesn't handle when
self
is used as path.Playground