2022-10-25 08:47:43 -05:00
|
|
|
error: concrete type differs from previous defining opaque type use
|
|
|
|
--> $DIR/impl-fn-predefined-lifetimes.rs:7:9
|
2022-07-28 15:18:32 -05:00
|
|
|
|
|
2022-10-25 08:47:43 -05:00
|
|
|
LL | |x| x
|
|
|
|
| ^ expected `impl Debug + '_`, got `&u8`
|
2022-07-28 15:18:32 -05:00
|
|
|
|
|
2022-10-25 08:47:43 -05:00
|
|
|
note: previous use here
|
|
|
|
--> $DIR/impl-fn-predefined-lifetimes.rs:7:5
|
|
|
|
|
|
|
|
|
LL | |x| x
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error[E0720]: cannot resolve opaque type
|
2022-07-28 15:18:32 -05:00
|
|
|
--> $DIR/impl-fn-predefined-lifetimes.rs:4:35
|
|
|
|
|
|
|
|
|
LL | fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
|
2022-11-11 12:08:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ cannot resolve opaque type
|
2022-07-28 15:18:32 -05:00
|
|
|
|
2022-10-25 08:47:43 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2022-07-28 15:18:32 -05:00
|
|
|
|
2022-10-25 08:47:43 -05:00
|
|
|
For more information about this error, try `rustc --explain E0720`.
|