]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / self / arbitrary_self_types_pin_lifetime_impl_trait-async.stderr
CommitLineData
e1599b0c
XL
1error: cannot infer an appropriate lifetime
2 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:16
3 |
4LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
5 | ^^^^ ---------- this return type evaluates to the `'static` lifetime...
6 | |
7 | ...but this borrow...
8 |
e74abb32 9note: ...can't outlive the lifetime `'_` as defined on the method body at 8:26
e1599b0c
XL
10 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:26
11 |
12LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
13 | ^
e1599b0c
XL
14
15error: aborting due to previous error
16