mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
14 lines
592 B
Plaintext
14 lines
592 B
Plaintext
error[E0700]: hidden type for `impl Future<Output = i32>` captures lifetime that does not appear in bounds
|
|
--> $DIR/cannot-capture-intersection.rs:22:9
|
|
|
|
|
LL | fn foo<'a, 'b>(&'a self, x: &'b i32) -> impl Future<Output = i32> {
|
|
| ------------------------- opaque type defined here
|
|
LL | self.ptr.foo(x)
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: hidden type `Pin<Box<dyn Future<Output = i32>>>` captures lifetime `'_`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0700`.
|