]>
Commit | Line | Data |
---|---|---|
94222f64 | 1 | error[E0308]: mismatched types |
f035d41b XL |
2 | --> $DIR/hr-subtype.rs:45:13 |
3 | | | |
4 | LL | gimme::<$t1>(None::<$t2>); | |
94222f64 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other |
f035d41b XL |
6 | ... |
7 | LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>), | |
8 | LL | | for<'a> fn(Inv<'a>, Inv<'a>)) } | |
9 | | |__________________________________- in this macro invocation | |
10 | | | |
94222f64 XL |
11 | = note: expected enum `Option<for<'r, 's> fn(Inv<'r>, Inv<'s>)>` |
12 | found enum `Option<for<'r> fn(Inv<'r>, Inv<'r>)>` | |
17df50a5 | 13 | = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info) |
f035d41b | 14 | |
94222f64 | 15 | error[E0308]: mismatched types |
f035d41b XL |
16 | --> $DIR/hr-subtype.rs:45:13 |
17 | | | |
18 | LL | gimme::<$t1>(None::<$t2>); | |
94222f64 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other |
f035d41b XL |
20 | ... |
21 | LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>), | |
22 | LL | | for<'a> fn(Inv<'a>, Inv<'a>)) } | |
23 | | |__________________________________- in this macro invocation | |
24 | | | |
94222f64 XL |
25 | = note: expected enum `Option<for<'r, 's> fn(Inv<'r>, Inv<'s>)>` |
26 | found enum `Option<for<'r> fn(Inv<'r>, Inv<'r>)>` | |
17df50a5 | 27 | = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info) |
f035d41b XL |
28 | |
29 | error: aborting due to 2 previous errors | |
30 | ||
94222f64 | 31 | For more information about this error, try `rustc --explain E0308`. |