diff --git a/src/test/compile-fail/issue-26638.rs b/src/test/compile-fail/issue-26638.rs index edb9ab47fc6..010803bf25b 100644 --- a/src/test/compile-fail/issue-26638.rs +++ b/src/test/compile-fail/issue-26638.rs @@ -14,6 +14,10 @@ fn parse_type(iter: Box+'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() {}