mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 20:28:33 +00:00
18 lines
164 B
Rust
18 lines
164 B
Rust
![]() |
// edition:2018
|
||
|
// check-pass
|
||
|
|
||
|
struct Xyz {
|
||
|
a: u64,
|
||
|
}
|
||
|
|
||
|
trait Foo {}
|
||
|
|
||
|
impl Xyz {
|
||
|
async fn do_sth(
|
||
|
&self, foo: &dyn Foo
|
||
|
) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|