Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
self
/
arbitrary_self_types_pin_lifetime_impl_trait-async.rs
blob: 0afe631f1e3fc03921e8539f2eee46ca69cc546f [
file
] [
log
] [
blame
]
// edition:2018
use
std
::
pin
::
Pin
;
struct
Foo
;
impl
Foo
{
async
fn
f
(
self
:
Pin
<&
Self
>)
->
impl
Clone
{
self
}
//~^ ERROR cannot infer an appropriate lifetime
}
fn
main
()
{
{
Pin
::
new
(&
Foo
).
f
()
};
}