rust/tests/ui/impl-trait/issues/issue-67830.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
556 B
Plaintext
Raw Normal View History

error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from outer `impl Trait`
--> $DIR/issue-67830.rs:20:64
2022-02-17 13:55:58 +00:00
|
LL | fn test() -> impl for<'a> MyFn<&'a A, Output = impl Iterator + 'a> {
| ^^
2022-02-17 13:55:58 +00:00
|
note: lifetime declared here
--> $DIR/issue-67830.rs:20:23
|
LL | fn test() -> impl for<'a> MyFn<&'a A, Output = impl Iterator + 'a> {
| ^^
2022-02-17 13:55:58 +00:00
error: aborting due to 1 previous error
2022-02-17 13:55:58 +00:00
For more information about this error, try `rustc --explain E0657`.