]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-26638.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-26638.rs
index edb9ab47fc611c0a656d560846b2c556a4927fb3..010803bf25b8a4efd352c6513e9a8d363783b652 100644 (file)
@@ -14,6 +14,10 @@ fn parse_type(iter: Box<Iterator<Item=&str>+'static>) -> &str { iter.next() }
 
 fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
 //~^ ERROR missing lifetime specifier [E0106]
-//~^^ HELP 0 elided free lifetimes
+//~^^ HELP lifetime cannot be derived
+
+fn parse_type_3() -> &str { unimplemented!() }
+//~^ ERROR missing lifetime specifier [E0106]
+//~^^ HELP no value for it to be borrowed from
 
 fn main() {}