]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0312]: lifetime of reference outlives lifetime of borrowed content... |
0731742a | 2 | --> $DIR/lub-match.rs:30:13 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | s |
b7449926 XL |
5 | | ^ |
6 | | | |
7 | = note: ...the reference is valid for the static lifetime... | |
0731742a XL |
8 | note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 25:17 |
9 | --> $DIR/lub-match.rs:25:17 | |
b7449926 XL |
10 | | |
11 | LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str { | |
12 | | ^^ | |
13 | ||
14 | error[E0312]: lifetime of reference outlives lifetime of borrowed content... | |
0731742a | 15 | --> $DIR/lub-match.rs:39:13 |
b7449926 | 16 | | |
532ac7d7 | 17 | LL | s |
b7449926 XL |
18 | | ^ |
19 | | | |
20 | = note: ...the reference is valid for the static lifetime... | |
0731742a XL |
21 | note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 35:17 |
22 | --> $DIR/lub-match.rs:35:17 | |
b7449926 XL |
23 | | |
24 | LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str { | |
25 | | ^^ | |
26 | ||
27 | error: aborting due to 2 previous errors | |
28 |