We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9569c63 commit 829e8bfCopy full SHA for 829e8bf
src/test/compile-fail/issue-26638.rs
@@ -14,6 +14,10 @@ fn parse_type(iter: Box<Iterator<Item=&str>+'static>) -> &str { iter.next() }
14
15
fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
16
//~^ ERROR missing lifetime specifier [E0106]
17
-//~^^ HELP 0 elided free lifetimes
+//~^^ 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
22
23
fn main() {}
0 commit comments