rust/src/test/ui/regions/regions-outlives-projection-container.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.9 KiB
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/regions-outlives-projection-container.rs:36:13
|
LL | fn with_assoc<'a,'b>() {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
...
LL | let _x: &'a WithAssoc<TheType<'b>> = loop { };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
2019-10-27 09:39:14 -05:00
|
= help: consider adding the following bound: `'b: 'a`
error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/regions-outlives-projection-container.rs:54:13
|
LL | fn without_assoc<'a,'b>() {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
...
LL | let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
2019-10-27 09:39:14 -05:00
|
= help: consider adding the following bound: `'b: 'a`
error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/regions-outlives-projection-container.rs:63:5
|
LL | fn call_with_assoc<'a,'b>() {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
...
LL | call::<&'a WithAssoc<TheType<'b>>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
2019-10-27 09:39:14 -05:00
|
= help: consider adding the following bound: `'b: 'a`
error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/regions-outlives-projection-container.rs:70:5
|
LL | fn call_without_assoc<'a,'b>() {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
...
LL | call::<&'a WithoutAssoc<TheType<'b>>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
2019-10-27 09:39:14 -05:00
|
= help: consider adding the following bound: `'b: 'a`
error: aborting due to 4 previous errors