Sign in
fuchsia
/
third_party
/
rust
/
9f4351d406fe904a99a7588ebb1411e369ba71f7
/
.
/
src
/
test
/
ui
/
async-await
/
async-fn-path-elision.rs
blob: 3f1f51c20ca0c3ce20d54462018398c918a2b393 [
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
()
{}