]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/regions-trait-object-subtyping.rs
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / compile-fail / regions-trait-object-subtyping.rs
index f3722690ef8959f27e0e158d3e2329cb7f0b01fd..e8ada6a1755719205422e74f43591b9bf8ea138f 100644 (file)
@@ -22,8 +22,8 @@ fn foo2<'a:'b,'b>(x: &'b mut (Dummy+'a)) -> &'b mut (Dummy+'b) {
 
 fn foo3<'a,'b>(x: &'a mut Dummy) -> &'b mut Dummy {
     // Without knowing 'a:'b, we can't coerce
-    x //~ ERROR lifetime of the source pointer does not outlive
-     //~^ ERROR cannot infer
+    x //~ ERROR cannot infer an appropriate lifetime
+     //~^ ERROR cannot infer an appropriate lifetime
 }
 
 struct Wrapper<T>(T);