]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-outlives-projection-container-wc.stderr
Rollup merge of #105674 - estebank:iterator-chains, r=oli-obk
[rust.git] / src / test / ui / regions / regions-outlives-projection-container-wc.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-outlives-projection-container-wc.rs:30:12
3    |
4 LL | fn with_assoc<'a,'b>() {
5    |               -- -- lifetime `'b` defined here
6    |               |
7    |               lifetime `'a` defined here
8 ...
9 LL |     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
14 error: aborting due to previous error
15