1 error[E0106]: missing lifetime specifier
2 --> $DIR/underscore-lifetime-binders.rs:12:17
4 LL | struct Baz<'a>(&'_ &'a u8); //~ ERROR missing lifetime specifier
5 | ^^ expected lifetime parameter
7 error[E0106]: missing lifetime specifier
8 --> $DIR/underscore-lifetime-binders.rs:14:10
10 LL | impl Foo<'_> { //~ ERROR missing lifetime specifier
11 | ^^ expected lifetime parameter
13 error[E0262]: invalid lifetime parameter name: `'_`
14 --> $DIR/underscore-lifetime-binders.rs:18:8
16 LL | fn foo<'_> //~ ERROR invalid lifetime parameter name: `'_`
17 | ^^ '_ is a reserved lifetime name
19 error[E0262]: invalid lifetime parameter name: `'_`
20 --> $DIR/underscore-lifetime-binders.rs:24:21
22 LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR invalid lifetime parameter name: `'_`
23 | ^^ '_ is a reserved lifetime name
25 error[E0106]: missing lifetime specifier
26 --> $DIR/underscore-lifetime-binders.rs:24:29
28 LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR invalid lifetime parameter name: `'_`
29 | ^^ expected lifetime parameter
31 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
32 = help: consider giving it a 'static lifetime
34 error[E0106]: missing lifetime specifier
35 --> $DIR/underscore-lifetime-binders.rs:30:35
37 LL | fn foo2(_: &'_ u8, y: &'_ u8) -> &'_ u8 { y } //~ ERROR missing lifetime specifier
38 | ^^ expected lifetime parameter
40 = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `_` or `y`
42 error: aborting due to 6 previous errors
44 Some errors occurred: E0106, E0262.
45 For more information about an error, try `rustc --explain E0106`.