15 lines
203 B
Rust
15 lines
203 B
Rust
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() {}
|