]> git.proxmox.com Git - rustc.git/blob - tests/ui/regions/regions-assoc-type-in-supertrait-outlives-container.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / regions / regions-assoc-type-in-supertrait-outlives-container.stderr
1 error: lifetime may not live long enough
2 --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:36: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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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