]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hr-subtype/hr-subtype.bound_co_a_co_b_ret_contra_a.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / hr-subtype / hr-subtype.bound_co_a_co_b_ret_contra_a.stderr
1 error[E0308]: mismatched types
2   --> $DIR/hr-subtype.rs:49:26
3    |
4 LL |               gimme::<$t1>(None::<$t2>);
5    |                            ^^^^^^^^^^^ expected concrete lifetime, found bound lifetime parameter 'a
6 ...
7 LL | / check! { bound_co_a_co_b_ret_contra_a: (for<'a,'b> fn(Co<'a>, Co<'b>) -> Contra<'a>,
8 LL | |                                         for<'a>    fn(Co<'a>, Co<'a>) -> Contra<'a>) }
9    | |______________________________________________________________________________________- in this macro invocation
10    |
11    = note: expected type `std::option::Option<for<'a, 'b> fn(Co<'a>, Co<'b>) -> Contra<'a>>`
12               found type `std::option::Option<for<'a> fn(Co<'a>, Co<'a>) -> Contra<'a>>`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.