about summary refs log tree commit diff
path: root/src/test/compile-fail/object-lifetime-default-from-box-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/object-lifetime-default-from-box-error.rs')
-rw-r--r--src/test/compile-fail/object-lifetime-default-from-box-error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/object-lifetime-default-from-box-error.rs b/src/test/compile-fail/object-lifetime-default-from-box-error.rs
index c0dd5200f6c..c50f425b2c0 100644
--- a/src/test/compile-fail/object-lifetime-default-from-box-error.rs
+++ b/src/test/compile-fail/object-lifetime-default-from-box-error.rs
@@ -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() {