2024-03-07 15:44:07 +00:00
|
|
|
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
|
|
|
|
--> $DIR/implicit-capture-late.rs:10:55
|
|
|
|
|
|
|
|
|
LL | fn foo(x: Vec<i32>) -> Box<dyn for<'a> Deref<Target = impl ?Sized>> {
|
|
|
|
| ^^^^^^^^^^^ `impl Trait` implicitly captures all lifetimes in scope
|
|
|
|
|
|
|
|
|
note: lifetime declared here
|
2023-10-19 19:01:59 +00:00
|
|
|
--> $DIR/implicit-capture-late.rs:10:36
|
|
|
|
|
|
|
|
|
LL | fn foo(x: Vec<i32>) -> Box<dyn for<'a> Deref<Target = impl ?Sized>> {
|
|
|
|
| ^^
|
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: ['a: o]
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $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
|
2023-10-19 19:01:59 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0657`.
|