1 warning: not reporting region error due to nll
2 --> $DIR/lub-if.rs:38:9
7 warning: not reporting region error due to nll
8 --> $DIR/lub-if.rs:45:9
10 LL | s //~ ERROR E0312
13 error: unsatisfied lifetime constraints
14 --> $DIR/lub-if.rs:34:8
16 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
17 | -- lifetime `'a` defined here
18 LL | if maybestr.is_none() {
19 | ^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
21 error: unsatisfied lifetime constraints
22 --> $DIR/lub-if.rs:43:8
24 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
25 | -- lifetime `'a` defined here
26 LL | if maybestr.is_some() {
27 | ^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
29 error: aborting due to 2 previous errors