]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-outlives-projection-container.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-outlives-projection-container.nll.stderr
CommitLineData
48663c56 1error: lifetime may not live long enough
04454e1e 2 --> $DIR/regions-outlives-projection-container.rs:40:13
48663c56
XL
3 |
4LL | fn with_assoc<'a,'b>() {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8...
9LL | let _x: &'a WithAssoc<TheType<'b>> = loop { };
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
60c5eb7d
XL
11 |
12 = help: consider adding the following bound: `'b: 'a`
48663c56
XL
13
14error: lifetime may not live long enough
04454e1e 15 --> $DIR/regions-outlives-projection-container.rs:59:13
48663c56
XL
16 |
17LL | fn without_assoc<'a,'b>() {
18 | -- -- lifetime `'b` defined here
19 | |
20 | lifetime `'a` defined here
21...
22LL | let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
60c5eb7d
XL
24 |
25 = help: consider adding the following bound: `'b: 'a`
48663c56
XL
26
27error: lifetime may not live long enough
04454e1e 28 --> $DIR/regions-outlives-projection-container.rs:69:5
48663c56
XL
29 |
30LL | fn call_with_assoc<'a,'b>() {
31 | -- -- lifetime `'b` defined here
32 | |
33 | lifetime `'a` defined here
34...
35LL | call::<&'a WithAssoc<TheType<'b>>>();
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
60c5eb7d
XL
37 |
38 = help: consider adding the following bound: `'b: 'a`
48663c56
XL
39
40error: lifetime may not live long enough
04454e1e 41 --> $DIR/regions-outlives-projection-container.rs:77:5
48663c56
XL
42 |
43LL | fn call_without_assoc<'a,'b>() {
44 | -- -- lifetime `'b` defined here
45 | |
46 | lifetime `'a` defined here
47...
48LL | call::<&'a WithoutAssoc<TheType<'b>>>();
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
60c5eb7d
XL
50 |
51 = help: consider adding the following bound: `'b: 'a`
48663c56
XL
52
53error: aborting due to 4 previous errors
54