]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/lub-if.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / lub-if.rs
index 06af8ac8719e57b539496912b1a825860f4947f6..8d2a0fd07e80a3e4436cb2ff221109491e2be3e3 100644 (file)
@@ -35,14 +35,14 @@ pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
         "(none)"
     } else {
         let s: &'a str = maybestr.as_ref().unwrap();
-        s  //~ ERROR cannot infer an appropriate lifetime for automatic coercion due to conflicting
+        s  //~ ERROR E0312
     }
 }
 
 pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
     if maybestr.is_some() {
         let s: &'a str = maybestr.as_ref().unwrap();
-        s  //~ ERROR cannot infer an appropriate lifetime for automatic coercion due to conflicting
+        s  //~ ERROR E0312
     } else {
         "(none)"
     }