Skip to content

Commit 829e8bf

Browse files
author
Jack Fransham
committed
Update lifetime compile tests
1 parent 9569c63 commit 829e8bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/compile-fail/issue-26638.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ fn parse_type(iter: Box<Iterator<Item=&str>+'static>) -> &str { iter.next() }
1414

1515
fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
1616
//~^ ERROR missing lifetime specifier [E0106]
17-
//~^^ HELP 0 elided free lifetimes
17+
//~^^ HELP lifetime cannot be derived
18+
19+
fn parse_type_3() -> &str { unimplemented!() }
20+
//~^ ERROR missing lifetime specifier [E0106]
21+
//~^^ HELP no value for it to be borrowed from
1822

1923
fn main() {}

0 commit comments

Comments
 (0)