]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/object-lifetime-default-from-box-error.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / object-lifetime-default-from-box-error.rs
index c0dd5200f6cb4e97be5e24eddf6f1d699f27052a..c50f425b2c01d744cb41256a10fd0f726010c8bf 100644 (file)
@@ -38,7 +38,7 @@ fn store(ss: &mut SomeStruct, b: Box<SomeTrait>) {
 fn store1<'b>(ss: &mut SomeStruct, b: Box<SomeTrait+'b>) {
     // Here we override the lifetimes explicitly, and so naturally we get an error.
 
-    ss.r = b; //~ ERROR cannot infer an appropriate lifetime
+    ss.r = b; //~ ERROR 41:12: 41:13: explicit lifetime required in the type of `ss` [E0621]
 }
 
 fn main() {