rust/tests/ui/nll/lub-if.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
630 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/lub-if.rs:28:9
|
LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
...
LL | s
| ^ returning this value requires that `'a` must outlive `'static`
error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/lub-if.rs:36:9
|
LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
...
LL | s
| ^ returning this value requires that `'a` must outlive `'static`
error: aborting due to 2 previous errors