]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / nll / user-annotations / issue-55748-pat-types-constrain-bindings.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-55748-pat-types-constrain-bindings.rs:33:5
3    |
4 LL | fn coupled_regions_lhs<'a>(_x: &'a u32, s: &'static u32) -> &'static u32 {
5    |                        -- lifetime `'a` defined here
6 ...
7 LL |     y
8    |     ^ returning this value requires that `'a` must outlive `'static`
9
10 error: lifetime may not live long enough
11   --> $DIR/issue-55748-pat-types-constrain-bindings.rs:47:5
12    |
13 LL | fn coupled_types_lhs<'a>(_x: &'a u32, s: &'static u32) -> &'static u32 {
14    |                      -- lifetime `'a` defined here
15 ...
16 LL |     y
17    |     ^ returning this value requires that `'a` must outlive `'static`
18
19 error: lifetime may not live long enough
20   --> $DIR/issue-55748-pat-types-constrain-bindings.rs:60:5
21    |
22 LL | fn coupled_wilds_lhs<'a>(_x: &'a u32, s: &'static u32) -> &'static u32 {
23    |                      -- lifetime `'a` defined here
24 ...
25 LL |     y
26    |     ^ returning this value requires that `'a` must outlive `'static`
27
28 error: aborting due to 3 previous errors
29