]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0621]: explicit lifetime required in the type of `s` |
0731742a | 2 | --> $DIR/regions-glb-free-free.rs:15:13 |
b7449926 XL |
3 | | |
4 | LL | pub fn set_desc(self, s: &str) -> Flag<'a> { | |
5 | | ---- help: add explicit lifetime `'a` to the type of `s`: `&'a str` | |
532ac7d7 | 6 | LL | / Flag { |
b7449926 XL |
7 | LL | | name: self.name, |
8 | LL | | desc: s, | |
9 | LL | | max_count: self.max_count, | |
10 | LL | | value: self.value | |
11 | LL | | } | |
12 | | |_____________^ lifetime `'a` required | |
13 | ||
4b012472 | 14 | error: aborting due to 1 previous error |
b7449926 XL |
15 | |
16 | For more information about this error, try `rustc --explain E0621`. |