]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/impl-fn-predefined-lifetimes.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / impl-trait / impl-fn-predefined-lifetimes.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/impl-fn-predefined-lifetimes.rs:7:9
3    |
4 LL |     |x| x
5    |         ^ expected `impl Debug + '_`, got `&u8`
6    |
7 note: previous use here
8   --> $DIR/impl-fn-predefined-lifetimes.rs:7:5
9    |
10 LL |     |x| x
11    |     ^^^^^
12
13 error[E0720]: cannot resolve opaque type
14   --> $DIR/impl-fn-predefined-lifetimes.rs:4:35
15    |
16 LL | fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
17    |                                   ^^^^^^^^^^^^^^^ cannot resolve opaque type
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0720`.