]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.migrate.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-assoc-type-in-supertrait-outlives-container.migrate.stderr
CommitLineData
9fa01778 1error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
a2a8927a 2 --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:44:12
9fa01778 3 |
48663c56
XL
4LL | let _: &'a WithAssoc<TheType<'b>> = loop { };
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
9fa01778 6 |
c295e0f8 7note: the pointer is valid for the lifetime `'a` as defined here
a2a8927a 8 --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:38:15
9fa01778
XL
9 |
10LL | fn with_assoc<'a,'b>() {
11 | ^^
c295e0f8 12note: but the referenced data is only valid for the lifetime `'b` as defined here
a2a8927a 13 --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:38:18
9fa01778
XL
14 |
15LL | fn with_assoc<'a,'b>() {
16 | ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0491`.