]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
f035d41b | 2 | --> $DIR/hr-subtype.rs:45:26 |
b7449926 XL |
3 | | |
4 | LL | gimme::<$t1>(None::<$t2>); | |
5 | | ^^^^^^^^^^^ lifetime mismatch | |
6 | ... | |
7 | LL | / check! { free_x_vs_free_y: (fn(&'x u32), | |
f035d41b XL |
8 | LL | | fn(&'y u32)) } |
9 | | |______________- in this macro invocation | |
b7449926 | 10 | | |
1b1a35ee XL |
11 | = note: expected enum `Option<fn(&'x u32)>` |
12 | found enum `Option<fn(&'y u32)>` | |
f035d41b XL |
13 | note: the lifetime `'x` as defined on the function body at 44:22... |
14 | --> $DIR/hr-subtype.rs:44:22 | |
b7449926 | 15 | | |
f035d41b | 16 | LL | fn supertype<'x, 'y: 'x, 'z: 'y>() { |
b7449926 XL |
17 | | ^^ |
18 | ... | |
19 | LL | / check! { free_x_vs_free_y: (fn(&'x u32), | |
f035d41b XL |
20 | LL | | fn(&'y u32)) } |
21 | | |______________- in this macro invocation | |
22 | note: ...does not necessarily outlive the lifetime `'y` as defined on the function body at 44:26 | |
23 | --> $DIR/hr-subtype.rs:44:26 | |
b7449926 | 24 | | |
f035d41b XL |
25 | LL | fn supertype<'x, 'y: 'x, 'z: 'y>() { |
26 | | ^^ | |
b7449926 XL |
27 | ... |
28 | LL | / check! { free_x_vs_free_y: (fn(&'x u32), | |
f035d41b XL |
29 | LL | | fn(&'y u32)) } |
30 | | |______________- in this macro invocation | |
74b04a01 | 31 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
32 | |
33 | error: aborting due to previous error | |
34 | ||
35 | For more information about this error, try `rustc --explain E0308`. |