]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/issue-58885.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / async-await / issues / issue-58885.rs
1 // check-pass
2 // edition:2018
3
4 struct Xyz {
5 a: u64,
6 }
7
8 trait Foo {}
9
10 impl Xyz {
11 async fn do_sth<'a>(
12 &'a self, foo: &'a dyn Foo
13 ) -> bool
14 {
15 true
16 }
17 }
18
19 fn main() {}