2024-03-18 16:03:18 +00:00
|
|
|
error[E0792]: expected generic lifetime parameter, found `'_`
|
|
|
|
--> $DIR/impl-fn-predefined-lifetimes.rs:5:9
|
2022-07-29 00:18:32 +04:00
|
|
|
|
|
|
|
|
LL | fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
|
2024-03-18 16:03:18 +00:00
|
|
|
| -- this generic parameter must be used with a generic lifetime parameter
|
|
|
|
LL | |x| x
|
|
|
|
| ^
|
2022-07-29 00:18:32 +04:00
|
|
|
|
2024-03-18 16:03:18 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-29 00:18:32 +04:00
|
|
|
|
2024-03-18 16:03:18 +00:00
|
|
|
For more information about this error, try `rustc --explain E0792`.
|