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