From 829e8bf2a51b56681fc16bd71140668a1c93d9b4 Mon Sep 17 00:00:00 2001 From: Jack Fransham Date: Tue, 1 Dec 2015 14:08:00 +0000 Subject: [PATCH] Update lifetime compile tests --- src/test/compile-fail/issue-26638.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() {}