1 error: lifetime may not live long enough
2 --> $DIR/lub-match.rs:30:13
4 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
5 | -- lifetime `'a` defined here
8 | ^ returning this value requires that `'a` must outlive `'static`
10 = help: consider replacing `'a` with `'static`
12 error: lifetime may not live long enough
13 --> $DIR/lub-match.rs:39:13
15 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
16 | -- lifetime `'a` defined here
19 | ^ returning this value requires that `'a` must outlive `'static`
21 = help: consider replacing `'a` with `'static`
23 error: aborting due to 2 previous errors