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