Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
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
()
};
}