1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2 --> $DIR/lub-match.rs:40:13
7 = note: ...the reference is valid for the static lifetime...
8 note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 35:17
9 --> $DIR/lub-match.rs:35:17
11 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
14 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
15 --> $DIR/lub-match.rs:49:13
17 LL | s //~ ERROR E0312
20 = note: ...the reference is valid for the static lifetime...
21 note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 45:17
22 --> $DIR/lub-match.rs:45:17
24 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0312`.