]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lub-if.nll.stderr
Auto merge of #53235 - varkor:gat_impl_where, r=estebank
[rust.git] / src / test / ui / lub-if.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/lub-if.rs:38:9
3    |
4 LL |         s  //~ ERROR E0312
5    |         ^
6
7 warning: not reporting region error due to nll
8   --> $DIR/lub-if.rs:45:9
9    |
10 LL |         s  //~ ERROR E0312
11    |         ^
12
13 error: unsatisfied lifetime constraints
14   --> $DIR/lub-if.rs:38:9
15    |
16 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
17    |                 -- lifetime `'a` defined here
18 ...
19 LL |         s  //~ ERROR E0312
20    |         ^ returning this value requires that `'a` must outlive `'static`
21
22 error: unsatisfied lifetime constraints
23   --> $DIR/lub-if.rs:45:9
24    |
25 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
26    |                 -- lifetime `'a` defined here
27 ...
28 LL |         s  //~ ERROR E0312
29    |         ^ returning this value requires that `'a` must outlive `'static`
30
31 error: aborting due to 2 previous errors
32