]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/self_lifetime-async.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / self / self_lifetime-async.rs
CommitLineData
e1599b0c
XL
1// check-pass
2// edition:2018
3
4struct Foo<'a>(&'a ());
5impl<'a> Foo<'a> {
6 async fn foo<'b>(self: &'b Foo<'a>) -> &() { self.0 }
7}
8
9type Alias = Foo<'static>;
10impl Alias {
11 async fn bar<'a>(self: &Alias, arg: &'a ()) -> &() { arg }
12}
13
14fn main() {}