11error[E0792]: expected generic lifetime parameter, found `'a`
2- --> $DIR/higher-ranked-regions-basic.rs:17 :55
2+ --> $DIR/higher-ranked-regions-basic.rs:15 :55
33 |
44LL | type Opq<'a> = impl Sized + 'a;
55 | -- this generic parameter must be used with a generic lifetime parameter
66LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq<'a>> {}
77 | ^^
88
99error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds
10- --> $DIR/higher-ranked-regions-basic.rs:23 :58
10+ --> $DIR/higher-ranked-regions-basic.rs:21 :58
1111 |
1212LL | fn test() -> impl for<'a> Trait<'a, Ty = impl Sized> {}
1313 | -- ---------- ^^
@@ -16,7 +16,7 @@ LL | fn test() -> impl for<'a> Trait<'a, Ty = impl Sized> {}
1616 | hidden type `&'a ()` captures the lifetime `'a` as defined here
1717
1818error[E0700]: hidden type for `capture_tait::Opq0` captures lifetime that does not appear in bounds
19- --> $DIR/higher-ranked-regions-basic.rs:32 :23
19+ --> $DIR/higher-ranked-regions-basic.rs:30 :23
2020 |
2121LL | type Opq0 = impl Sized;
2222 | ---------- opaque type defined here
@@ -27,7 +27,7 @@ LL | fn test() -> Opq2 {}
2727 | ^^
2828
2929error[E0792]: expected generic lifetime parameter, found `'a`
30- --> $DIR/higher-ranked-regions-basic.rs:41 :23
30+ --> $DIR/higher-ranked-regions-basic.rs:39 :23
3131 |
3232LL | type Opq1<'a> = impl for<'b> Trait<'b, Ty = Opq0<'b>>; // <- Note 'b
3333 | -- this generic parameter must be used with a generic lifetime parameter
@@ -36,7 +36,7 @@ LL | fn test() -> Opq2 {}
3636 | ^^
3737
3838error[E0700]: hidden type for `capture_tait_complex_fail::Opq0<'a>` captures lifetime that does not appear in bounds
39- --> $DIR/higher-ranked-regions-basic.rs:51 :23
39+ --> $DIR/higher-ranked-regions-basic.rs:49 :23
4040 |
4141LL | type Opq0<'a> = impl Sized;
4242 | ---------- opaque type defined here
@@ -47,47 +47,47 @@ LL | fn test() -> Opq2 {}
4747 | ^^
4848
4949error[E0792]: non-defining opaque type use in defining scope
50- --> $DIR/higher-ranked-regions-basic.rs:59 :41
50+ --> $DIR/higher-ranked-regions-basic.rs:57 :41
5151 |
5252LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'static>> {}
5353 | ^^^^^^^^^^^^^^^^^^^^^^ argument `'static` is not a generic parameter
5454 |
5555note: for this opaque type
56- --> $DIR/higher-ranked-regions-basic.rs:58 :25
56+ --> $DIR/higher-ranked-regions-basic.rs:56 :25
5757 |
5858LL | type Opq0<'a, 'b> = impl Sized;
5959 | ^^^^^^^^^^
6060
6161error[E0792]: expected generic lifetime parameter, found `'a`
62- --> $DIR/higher-ranked-regions-basic.rs:59 :65
62+ --> $DIR/higher-ranked-regions-basic.rs:57 :65
6363 |
6464LL | type Opq0<'a, 'b> = impl Sized;
6565 | -- this generic parameter must be used with a generic lifetime parameter
6666LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'static>> {}
6767 | ^^
6868
6969error: non-defining opaque type use in defining scope
70- --> $DIR/higher-ranked-regions-basic.rs:68 :41
70+ --> $DIR/higher-ranked-regions-basic.rs:66 :41
7171 |
7272LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'a>> {}
7373 | ^^^^^^^^^^^^^^^^^ generic argument `'a` used twice
7474 |
7575note: for this opaque type
76- --> $DIR/higher-ranked-regions-basic.rs:67 :25
76+ --> $DIR/higher-ranked-regions-basic.rs:65 :25
7777 |
7878LL | type Opq0<'a, 'b> = impl Sized;
7979 | ^^^^^^^^^^
8080
8181error[E0792]: expected generic lifetime parameter, found `'a`
82- --> $DIR/higher-ranked-regions-basic.rs:68 :60
82+ --> $DIR/higher-ranked-regions-basic.rs:66 :60
8383 |
8484LL | type Opq0<'a, 'b> = impl Sized;
8585 | -- this generic parameter must be used with a generic lifetime parameter
8686LL | fn test() -> impl for<'a> Trait<'a, Ty = Opq0<'a, 'a>> {}
8787 | ^^
8888
8989error[E0792]: expected generic lifetime parameter, found `'a`
90- --> $DIR/higher-ranked-regions-basic.rs:78 :23
90+ --> $DIR/higher-ranked-regions-basic.rs:76 :23
9191 |
9292LL | type Opq1<'a> = impl for<'b> Trait<'b, Ty = Opq0<'a, 'b>>;
9393 | -- this generic parameter must be used with a generic lifetime parameter
0 commit comments