14 lines
163 B
Rust
14 lines
163 B
Rust
|
|
pub trait Trait {
|
||
|
|
async fn method(&self);
|
||
|
|
}
|
||
|
|
|
||
|
|
pub struct Struct;
|
||
|
|
|
||
|
|
impl Trait for Struct {
|
||
|
|
async fn method(&self) {}
|
||
|
|
}
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let _: &dyn Trait;
|
||
|
|
}
|