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() };
}