]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-outlives-projection-container-hrtb.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-outlives-projection-container-hrtb.nll.stderr
CommitLineData
9fa01778 1error: lifetime may not live long enough
a2a8927a 2 --> $DIR/regions-outlives-projection-container-hrtb.rs:35:12
9fa01778
XL
3 |
4LL | fn with_assoc<'a,'b>() {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8...
9LL | let _: &'a WithHrAssoc<TheType<'b>> = loop { };
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
60c5eb7d
XL
11 |
12 = help: consider adding the following bound: `'b: 'a`
9fa01778
XL
13
14error: lifetime may not live long enough
a2a8927a 15 --> $DIR/regions-outlives-projection-container-hrtb.rs:55:12
9fa01778
XL
16 |
17LL | fn with_assoc_sub<'a,'b>() {
18 | -- -- lifetime `'b` defined here
19 | |
20 | lifetime `'a` defined here
21...
22LL | let _: &'a WithHrAssocSub<TheType<'b>> = loop { };
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
60c5eb7d
XL
24 |
25 = help: consider adding the following bound: `'b: 'a`
9fa01778
XL
26
27error: aborting due to 2 previous errors
28