Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
self
/
self_lifetime-async.rs
blob: c3c6e56582d9f25af18404520bdb2dc113afc35e [
file
] [
log
] [
blame
]
// 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
()
{}