mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
16 lines
556 B
Plaintext
16 lines
556 B
Plaintext
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from outer `impl Trait`
|
|
--> $DIR/issue-67830.rs:20:64
|
|
|
|
|
LL | fn test() -> impl for<'a> MyFn<&'a A, Output = impl Iterator + 'a> {
|
|
| ^^
|
|
|
|
|
note: lifetime declared here
|
|
--> $DIR/issue-67830.rs:20:23
|
|
|
|
|
LL | fn test() -> impl for<'a> MyFn<&'a A, Output = impl Iterator + 'a> {
|
|
| ^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0657`.
|