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