blob: a1e7f4aa875eeb749821b7101543863b576081a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// edition:2018
use std::pin::Pin;
struct Foo;
impl Foo {
async fn f(self: Pin<&Self>) -> impl Clone { self }
//~^ ERROR: captures lifetime that does not appear in bounds
}
fn main() {
{ Pin::new(&Foo).f() };
}
|