Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
async-await
/
issues
/
issue-63388-1.rs
blob: 3a89f3ebfd2b47bbf058752cfa9c02f7b8c849d4 [
file
] [
log
] [
blame
]
//@ edition:2018
struct
Xyz
{
a
:
u64
,
}
trait
Foo
{}
impl
Xyz
{
async
fn
do_sth
<
'
a
>(
&
'
a
self
,
foo
:
&
dyn
Foo
)
->
&
dyn
Foo
{
foo
//~^ ERROR explicit lifetime required in the type of `foo` [E0621]
}
}
fn
main
()
{}