Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
async-await
/
async-fn-elided-impl-lifetime-parameter.rs
blob: 80f8b5aaa206fc38e9c59f5f7fe45b5bbce54cbc [
file
] [
log
] [
blame
] [
edit
]
// Check that `async fn` inside of an impl with `'_`
// in the header compiles correctly.
//
// Regression test for #63500.
//
//@ check-pass
//@ edition:2018
struct
Foo
<
'a>(&'
a u8
);
impl
Foo
<
'
_
>
{
async
fn
bar
()
{}
}
fn
main
()
{
}