1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// edition:2018 // check-pass struct Xyz { a: u64, } trait Foo {} impl Xyz { async fn do_sth( &self, foo: &dyn Foo ) { } } fn main() {}