fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
513 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-outlives-projection-container-wc.rs:33:12
3   |
4LL | fn with_assoc<'a,'b>() {
5   |               -- -- lifetime `'b` defined here
6   |               |
7   |               lifetime `'a` defined here
8...
9LL |     let _: &'a WithAssoc<TheType<'b>> = loop { };
10   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
11   |
12   = help: consider adding the following bound: `'b: 'a`
13
14error: aborting due to previous error
15