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