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