]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions-fn-subtyping-return-static-fail.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / regions-fn-subtyping-return-static-fail.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/regions-fn-subtyping-return-static-fail.rs:48:12
b7449926 3 |
532ac7d7 4LL | 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 10error: aborting due to previous error
b7449926
XL
11
12For more information about this error, try `rustc --explain E0308`.