Auto merge of #30102 - jFransham:feature/better-lifetime-errors, r=Manishearth
Fixes #30086
This commit is contained in:
commit
d75f861518
2 changed files with 24 additions and 7 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue