fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.0 KiB28 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-outlives-projection-container-hrtb.rs:30:12
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`
11   |
12   = help: consider adding the following bound: `'b: 'a`
13
14error: lifetime may not live long enough
15  --> $DIR/regions-outlives-projection-container-hrtb.rs:50:12
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`
24   |
25   = help: consider adding the following bound: `'b: 'a`
26
27error: aborting due to 2 previous errors
28