blob: 7d6eb3f5eaf026fea7b91cdbe029aa84838d7414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ check-pass
//@ edition:2018
struct Foo<'a>(&'a ());
impl<'a> Foo<'a> {
async fn foo<'b>(self: &'b Foo<'a>) -> &() { self.0 }
}
type Alias = Foo<'static>;
impl Alias {
async fn bar<'a>(self: &Alias, arg: &'a ()) -> &() { arg }
}
fn main() {}
|