mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
16 lines
565 B
Plaintext
16 lines
565 B
Plaintext
error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level
|
|
--> $DIR/implicit-capture-late.rs:10:36
|
|
|
|
|
LL | fn foo(x: Vec<i32>) -> Box<dyn for<'a> Deref<Target = impl ?Sized>> {
|
|
| ^^
|
|
|
|
error: [o]
|
|
--> $DIR/implicit-capture-late.rs:10:55
|
|
|
|
|
LL | fn foo(x: Vec<i32>) -> Box<dyn for<'a> Deref<Target = impl ?Sized>> {
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0657`.
|