]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-fn-subtyping-return-static-fail.nll.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / regions / regions-fn-subtyping-return-static-fail.nll.stderr
index d762f55f9d5f17da08155960cc059c6ed2629786..c2956cd89580f757e4c66c47c49f05794301267d 100644 (file)
@@ -1,8 +1,12 @@
-error: higher-ranked subtype error
+error[E0308]: mismatched types
   --> $DIR/regions-fn-subtyping-return-static-fail.rs:48:5
    |
 LL |     want_G(baz);
-   |     ^^^^^^^^^^^
+   |     ^^^^^^^^^^^ one type is more general than the other
+   |
+   = note: expected fn pointer `for<'cx> fn(&'cx S) -> &'static S`
+              found fn pointer `for<'r> fn(&'r S) -> &'r S`
 
 error: aborting due to previous error
 
+For more information about this error, try `rustc --explain E0308`.