fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0106]: missing lifetime specifier 2 --> $DIR/underscore-lifetime-binders.rs:2:17 3 | 4LL | struct Baz<'a>(&'_ &'a u8); 5 | ^^ expected named lifetime parameter 6 | 7help: consider using the `'a` lifetime 8 | 9LL | struct Baz<'a>(&'a &'a u8); 10 | ~~ 11 12error[E0637]: `'_` cannot be used here 13 --> $DIR/underscore-lifetime-binders.rs:4:8 14 | 15LL | fn foo<'_> 16 | ^^ `'_` is a reserved lifetime name 17 18error[E0637]: `'_` cannot be used here 19 --> $DIR/underscore-lifetime-binders.rs:10:25 20 | 21LL | fn meh() -> Box<dyn for<'_> Meh<'_>> 22 | ^^ `'_` is a reserved lifetime name 23 24error[E0106]: missing lifetime specifier 25 --> $DIR/underscore-lifetime-binders.rs:10:33 26 | 27LL | fn meh() -> Box<dyn for<'_> Meh<'_>> 28 | ^^ expected named lifetime parameter 29 | 30 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from 31help: consider using the `'static` lifetime 32 | 33LL | fn meh() -> Box<dyn for<'_> Meh<'static>> 34 | ~~~~~~~ 35 36error[E0106]: missing lifetime specifier 37 --> $DIR/underscore-lifetime-binders.rs:16:35 38 | 39LL | fn foo2(_: &'_ u8, y: &'_ u8) -> &'_ u8 { y } 40 | ------ ------ ^^ expected named lifetime parameter 41 | 42 = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from argument 1 or `y` 43help: consider introducing a named lifetime parameter 44 | 45LL | fn foo2<'a>(_: &'a u8, y: &'a u8) -> &'a u8 { y } 46 | ++++ ~~ ~~ ~~ 47 48error: aborting due to 5 previous errors 49 50Some errors have detailed explanations: E0106, E0637. 51For more information about an error, try `rustc --explain E0106`.