rust/tests/ui/type-alias-impl-trait/param_mismatch3.stderr

22 lines
646 B
Plaintext

error[E0792]: expected generic lifetime parameter, found `'a`
--> $DIR/param_mismatch3.rs:13:5
|
LL | type Opaque<'a> = impl Sized + 'a;
| -- this generic parameter must be used with a generic lifetime parameter
...
LL | id2
| ^^^
error[E0792]: expected generic lifetime parameter, found `'_`
--> $DIR/param_mismatch3.rs:23:5
|
LL | type Opaque2<'a> = impl Sized + 'a;
| -- this generic parameter must be used with a generic lifetime parameter
...
LL | (id, s)
| ^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0792`.