2022-07-28 15:18:32 -05:00
|
|
|
error[E0700]: hidden type for `impl Debug` captures lifetime that does not appear in bounds
|
|
|
|
--> $DIR/impl-fn-hrtb-bounds-2.rs:5:9
|
2022-06-23 10:00:03 -05:00
|
|
|
|
|
2023-02-20 21:58:38 -06:00
|
|
|
LL | fn a() -> impl Fn(&u8) -> impl Debug {
|
|
|
|
| ---------- opaque type defined here
|
2022-06-23 10:00:03 -05:00
|
|
|
LL | |x| x
|
2022-07-28 15:18:32 -05:00
|
|
|
| --- ^
|
|
|
|
| |
|
2023-04-06 21:07:21 -05:00
|
|
|
| hidden type `&u8` captures the anonymous lifetime as defined here
|
2022-06-23 10:00:03 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-23 10:00:03 -05:00
|
|
|
|
2022-07-28 15:18:32 -05:00
|
|
|
For more information about this error, try `rustc --explain E0700`.
|