|
| 1 | +error[E0792]: expected generic lifetime parameter, found `'_` |
| 2 | + --> $DIR/hkl_forbidden.rs:10:5 |
| 3 | + | |
| 4 | +LL | type Opaque<'a> = impl Sized + 'a; |
| 5 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 6 | +... |
| 7 | +LL | (id, id) |
| 8 | + | ^^^^^^^^ |
| 9 | + |
| 10 | +error[E0792]: expected generic lifetime parameter, found `'a` |
| 11 | + --> $DIR/hkl_forbidden.rs:20:5 |
| 12 | + | |
| 13 | +LL | type Opaque2<'a> = impl Sized + 'a; |
| 14 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 15 | +... |
| 16 | +LL | id2 |
| 17 | + | ^^^ |
| 18 | + |
| 19 | +error[E0792]: expected generic lifetime parameter, found `'_` |
| 20 | + --> $DIR/hkl_forbidden.rs:26:5 |
| 21 | + | |
| 22 | +LL | type Opaque3<'a> = impl Sized + 'a; |
| 23 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 24 | +... |
| 25 | +LL | (id, s) |
| 26 | + | ^^^^^^^ |
| 27 | + |
| 28 | +error[E0792]: expected generic lifetime parameter, found `'_` |
| 29 | + --> $DIR/hkl_forbidden.rs:31:5 |
| 30 | + | |
| 31 | +LL | type Opaque4<'a> = impl Sized + 'a; |
| 32 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 33 | +LL | fn test4(s: &str) -> (Opaque4<'_>, impl Fn(&str) -> Opaque4<'_>) { |
| 34 | +LL | (s, id) |
| 35 | + | ^^^^^^^ |
| 36 | + |
| 37 | +error[E0792]: expected generic lifetime parameter, found `'a` |
| 38 | + --> $DIR/hkl_forbidden.rs:36:5 |
| 39 | + | |
| 40 | +LL | type Inner<'a> = impl Sized; |
| 41 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 42 | +LL | fn outer_impl() -> impl for<'a> Fn(&'a ()) -> Inner<'a> { |
| 43 | +LL | |x| x |
| 44 | + | ^^^^^ |
| 45 | + |
| 46 | +error: aborting due to 5 previous errors |
| 47 | + |
| 48 | +For more information about this error, try `rustc --explain E0792`. |
0 commit comments