]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/regions-fn-subtyping-return-static-fail.rs:48:12 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | want_G(baz); |
f035d41b | 5 | | ^^^ one type is more general than the other |
b7449926 | 6 | | |
60c5eb7d | 7 | = note: expected fn pointer `for<'cx> fn(&'cx S) -> &'static S` |
f035d41b | 8 | found fn pointer `for<'r> fn(&'r S) -> &'r S` |
b7449926 | 9 | |
f035d41b | 10 | error: aborting due to previous error |
b7449926 XL |
11 | |
12 | For more information about this error, try `rustc --explain E0308`. |