]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/wf-static-method.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / wf-static-method.rs
index 6c6522fe658d23ec0053b575e32db7f33026a993..e99957c79142738ac8ab7df1990ac943ec80dba9 100644 (file)
@@ -24,7 +24,7 @@ struct Evil<'a, 'b: 'a>(Option<&'a &'b ()>);
 impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
     fn make_me() -> Self { }
     fn static_evil(u: &'b u32) -> &'a u32 {
-        u //~ ERROR cannot infer an appropriate lifetime
+        u //~ ERROR E0312
     }
 }
 
@@ -40,7 +40,7 @@ impl<'a, 'b> Foo<'a, 'b, ()> for IndirectEvil<'a, 'b> {
 
 impl<'a, 'b> Evil<'a, 'b> {
     fn inherent_evil(u: &'b u32) -> &'a u32 {
-        u //~ ERROR cannot infer an appropriate lifetime
+        u //~ ERROR E0312
     }
 }