]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
923072b8 | 2 | --> $DIR/hr-subtype.rs:54:13 |
b7449926 XL |
3 | | |
4 | LL | gimme::<$t1>(None::<$t2>); | |
923072b8 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other |
b7449926 XL |
6 | ... |
7 | LL | / check! { bound_a_vs_free_x: (for<'a> fn(&'a u32), | |
f035d41b XL |
8 | LL | | fn(&'x u32)) } |
9 | | |______________- in this macro invocation | |
b7449926 | 10 | | |
1b1a35ee | 11 | = note: expected enum `Option<for<'a> fn(&'a u32)>` |
923072b8 | 12 | found enum `Option<fn(&u32)>` |
17df50a5 | 13 | = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0308`. |