]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lub-if.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / lub-if.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/lub-if.rs:28:9
3 |
4 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
5 | -- lifetime `'a` defined here
6 ...
7 LL | s
8 | ^ returning this value requires that `'a` must outlive `'static`
9 |
10 = help: consider replacing `'a` with `'static`
11
12 error: lifetime may not live long enough
13 --> $DIR/lub-if.rs:35:9
14 |
15 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
16 | -- lifetime `'a` defined here
17 ...
18 LL | s
19 | ^ returning this value requires that `'a` must outlive `'static`
20 |
21 = help: consider replacing `'a` with `'static`
22
23 error: aborting due to 2 previous errors
24