fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
900 B24 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
12error: lifetime may not live long enough
13  --> $DIR/regions-outlives-projection-container-hrtb.rs:50:12
14   |
15LL | fn with_assoc_sub<'a,'b>() {
16   |                   -- -- lifetime `'b` defined here
17   |                   |
18   |                   lifetime `'a` defined here
19...
20LL |     let _: &'a WithHrAssocSub<TheType<'b>> = loop { };
21   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
22
23error: aborting due to 2 previous errors
24