rust/tests/ui/impl-trait/impl-fn-predefined-lifetimes.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
645 B
Plaintext
Raw Normal View History

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 + '_) {
| ^^^^^^^^^^^^^^^ 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`.