Debian Codegraph @

third_party/rust/async-trait/tests/ui/unsupported-self.rs

raw
1 use async_trait::async_trait;
2
3 #[async_trait]
4 pub trait Trait {
5 async fn method();
6 }
7
8 #[async_trait]
9 impl Trait for &'static str {
10 async fn method() {
11 let _ = Self;
12 }
13 }
14
15 fn main() {}