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:38:9
16 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
17 | -- lifetime `'a` defined here
19 LL | s //~ ERROR E0312
20 | ^ returning this value requires that `'a` must outlive `'static`
22 error: unsatisfied lifetime constraints
23 --> $DIR/lub-if.rs:45:9
25 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
26 | -- lifetime `'a` defined here
28 LL | s //~ ERROR E0312
29 | ^ returning this value requires that `'a` must outlive `'static`
31 error: aborting due to 2 previous errors