]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-3154.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-3154.rs
index 5f55c550aeb3979de774361b0d5f1df0ebabe703..519e9d06d1b33c1c4558ed19b86f534aa03cce6a 100644 (file)
@@ -13,7 +13,7 @@ struct thing<'a, Q:'a> {
 }
 
 fn thing<'a,Q>(x: &Q) -> thing<'a,Q> {
-    thing{ x: x } //~ ERROR cannot infer
+    thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
 }
 
 fn main() {