| ^^ expected lifetime parameter
error[E0106]: missing lifetime specifier
- --> $DIR/underscore-lifetime-binders.rs:14:10
- |
-LL | impl Foo<'_> { //~ ERROR missing lifetime specifier
- | ^^ expected lifetime parameter
-
-error[E0106]: missing lifetime specifier
- --> $DIR/underscore-lifetime-binders.rs:24:29
+ --> $DIR/underscore-lifetime-binders.rs:20:29
|
LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR cannot be used here
- | ^^ expected lifetime parameter
+ | ^^ 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
- = help: consider giving it a 'static lifetime
error[E0106]: missing lifetime specifier
- --> $DIR/underscore-lifetime-binders.rs:30:35
+ --> $DIR/underscore-lifetime-binders.rs:26:35
|
LL | fn foo2(_: &'_ u8, y: &'_ u8) -> &'_ u8 { y } //~ ERROR missing lifetime specifier
| ^^ expected lifetime parameter