mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
27 lines
768 B
Text
27 lines
768 B
Text
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
|
|
--> $DIR/E0657.rs:10:31
|
|
|
|
|
LL | -> Box<for<'a> Id<impl Lt<'a>>>
|
|
| ^^
|
|
|
|
|
note: lifetime declared here
|
|
--> $DIR/E0657.rs:10:16
|
|
|
|
|
LL | -> Box<for<'a> Id<impl Lt<'a>>>
|
|
| ^^
|
|
|
|
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
|
|
--> $DIR/E0657.rs:19:35
|
|
|
|
|
LL | -> Box<for<'a> Id<impl Lt<'a>>>
|
|
| ^^
|
|
|
|
|
note: lifetime declared here
|
|
--> $DIR/E0657.rs:19:20
|
|
|
|
|
LL | -> Box<for<'a> Id<impl Lt<'a>>>
|
|
| ^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0657`.
|