blob: 0afe631f1e3fc03921e8539f2eee46ca69cc546f [file] [log] [blame]
// edition:2018
use std::pin::Pin;
struct Foo;
impl Foo {
async fn f(self: Pin<&Self>) -> impl Clone { self }
//~^ ERROR cannot infer an appropriate lifetime
}
fn main() {
{ Pin::new(&Foo).f() };
}