Files
Notes/notes-service/vendor/async-trait/tests/ui/missing-async-in-trait.rs
T
2026-08-01 16:11:49 +03:00

16 lines
184 B
Rust

use async_trait::async_trait;
#[async_trait]
pub trait Trait {
fn method();
}
pub struct Struct;
#[async_trait]
impl Trait for Struct {
async fn method() {}
}
fn main() {}