2017-12-10 19:47:55 +00:00
|
|
|
error[E0106]: missing lifetime specifier
|
|
|
|
--> $DIR/issue-26638.rs:11:58
|
|
|
|
|
|
|
|
|
11 | fn parse_type(iter: Box<Iterator<Item=&str>+'static>) -> &str { iter.next() }
|
|
|
|
| ^ expected lifetime parameter
|
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value, but the signature does not say which one of `iter`'s 2 lifetimes it is borrowed from
|
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-26638.rs:14:40
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2017-12-10 20:29:24 +00:00
|
|
|
14 | fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^ expected lifetime parameter
|
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
|
|
|
|
= help: consider giving it an explicit bounded or 'static lifetime
|
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-26638.rs:17:22
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2017-12-10 20:29:24 +00:00
|
|
|
17 | fn parse_type_3() -> &str { unimplemented!() }
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^ expected lifetime parameter
|
|
|
|
|
|
|
|
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
|
|
|
|
= help: consider giving it a 'static lifetime
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 20:40:25 +00:00
|
|
|
If you want more information on this error, try using "rustc --explain E0106"
|