]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/regions-fn-subtyping-return-static-fail.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / regions-fn-subtyping-return-static-fail.rs
index 242119cc201dafcbc273639118b14b2a3cd1340f..2dd0c9796e2584eaa12fb5a23b90a0e05d859d4e 100644 (file)
@@ -37,7 +37,7 @@ fn baz(x: &S) -> &S {
 fn supply_F() {
     want_F(foo);
 
-    want_F(bar);
+    want_F(bar); //~ ERROR mismatched types
 
     want_F(baz);
 }
@@ -45,7 +45,7 @@ fn supply_F() {
 fn supply_G() {
     want_G(foo);
     want_G(bar);
-    want_G(baz); //~ ERROR
+    want_G(baz); //~ ERROR mismatched types
 }
 
 pub fn main() {