review comments
This commit is contained in:
parent
e1e52eb5a0
commit
d0bd69a2d5
9 changed files with 57 additions and 108 deletions
|
|
@ -2,10 +2,7 @@ error[E0106]: missing lifetime specifier
|
|||
--> $DIR/issue-13497.rs:12:5
|
||||
|
|
||||
LL | &str //~ ERROR missing lifetime specifier
|
||||
| ^
|
||||
| |
|
||||
| expected lifetime parameter
|
||||
| help: consider giving it a 'static lifetime: `&'static`
|
||||
| ^ help: consider giving it a 'static lifetime: `&'static`
|
||||
|
|
||||
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ error[E0106]: missing lifetime specifier
|
|||
--> $DIR/issue-26638.rs:14:40
|
||||
|
|
||||
LL | fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
|
||||
| ^
|
||||
| |
|
||||
| expected lifetime parameter
|
||||
| help: consider giving it an explicit bounded or 'static lifetime: `&'static`
|
||||
| ^ help: consider giving it an explicit bounded or 'static lifetime: `&'static`
|
||||
|
|
||||
= help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
|
||||
|
||||
|
|
@ -21,10 +18,7 @@ error[E0106]: missing lifetime specifier
|
|||
--> $DIR/issue-26638.rs:17:22
|
||||
|
|
||||
LL | fn parse_type_3() -> &str { unimplemented!() }
|
||||
| ^
|
||||
| |
|
||||
| expected lifetime parameter
|
||||
| help: consider giving it a 'static lifetime: `&'static`
|
||||
| ^ help: consider giving it a 'static lifetime: `&'static`
|
||||
|
|
||||
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue