Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
ui
/
async-await
/
async-fn-path-elision.rs
blob: 7f2fb5a908a2a3f7440908a83143e50c93279397 [
file
] [
log
] [
blame
]
//@ edition:2018
struct
HasLifetime
<
'a>(&'
a bool
);
async
fn
error
(
lt
:
HasLifetime
)
{
//~ ERROR implicit elided lifetime not allowed here
if
*
lt
.
0
{}
}
fn
no_error
(
lt
:
HasLifetime
)
{
if
*
lt
.
0
{}
}
fn
main
()
{}