2018-08-08 07:28:26 -05:00
|
|
|
error[E0621]: explicit lifetime required in the type of `s`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-glb-free-free.rs:15:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | pub fn set_desc(self, s: &str) -> Flag<'a> {
|
|
|
|
| ---- help: add explicit lifetime `'a` to the type of `s`: `&'a str`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | / Flag {
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | | name: self.name,
|
|
|
|
LL | | desc: s,
|
|
|
|
LL | | max_count: self.max_count,
|
|
|
|
LL | | value: self.value
|
|
|
|
LL | | }
|
|
|
|
| |_____________^ lifetime `'a` required
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0621`.
|