Sign in
fuchsia
/
third_party
/
rust
/
daafeb35b731a599fc8b6c4cf37b81f838dae319
/
.
/
src
/
test
/
ui
/
self
/
arbitrary_self_types_pin_lifetime_impl_trait.rs
blob: ad8959727cbee5abb0405a4dd7ebc78fb618e0f6 [
file
] [
log
] [
blame
]
// compile-fail
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
()
};
}