Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
async-await
/
issues
/
issue-78600.rs
blob: 1326546e930fe8e3415b559e78dae4227da1f862 [
file
] [
log
] [
blame
]
//@ check-pass
//@ edition:2018
struct
S
<
'a>(&'
a i32
);
impl
<
'a> S<'
a
>
{
async
fn
new
(
i
:
&
'
a i32
)
->
Result
<
Self
,
()>
{
Ok
(
S
(&
22
))
}
}
fn
main
()
{}