]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/issue-63388-2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / async-await / issues / issue-63388-2.rs
1 // edition:2018
2
3 struct Xyz {
4 a: u64,
5 }
6
7 trait Foo {}
8
9 impl Xyz {
10 async fn do_sth<'a>(
11 foo: &dyn Foo, bar: &'a dyn Foo
12 ) -> &dyn Foo //~ ERROR missing lifetime specifier
13 {
14 //~^ ERROR explicit lifetime required in the type of `foo` [E0621]
15 foo
16 }
17 }
18
19 fn main() {}