]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions-fn-subtyping-return-static-fail.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / regions-fn-subtyping-return-static-fail.stderr
index 66e6a615b33bc996904cbaf839d19916570dacab..35478a7db860aac3a4277ffb3d14ac7fd7becff5 100644 (file)
@@ -1,7 +1,7 @@
 error[E0308]: mismatched types
   --> $DIR/regions-fn-subtyping-return-static-fail.rs:40:12
    |
-LL |     want_F(bar); //~ ERROR mismatched types
+LL |     want_F(bar);
    |            ^^^ expected concrete lifetime, found bound lifetime parameter 'cx
    |
    = note: expected type `for<'cx> fn(&'cx S) -> &'cx S`
@@ -10,7 +10,7 @@ LL |     want_F(bar); //~ ERROR mismatched types
 error[E0308]: mismatched types
   --> $DIR/regions-fn-subtyping-return-static-fail.rs:48:12
    |
-LL |     want_G(baz); //~ ERROR mismatched types
+LL |     want_G(baz);
    |            ^^^ expected concrete lifetime, found bound lifetime parameter 'cx
    |
    = note: expected type `for<'cx> fn(&'cx S) -> &'static S`