about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-67830.stderr
blob: a7633c7f20b659e2e2df618a0622ab3ed0eef709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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`.