| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:12:5 |
| | |
| LL | fn unwrap<'a, 'b>(a: *const W<dyn A<'a>>) -> *const dyn A<'b> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
| | |
| = help: consider adding the following bound: `'b: 'a` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:12:5 |
| | |
| LL | fn unwrap<'a, 'b>(a: *const W<dyn A<'a>>) -> *const dyn A<'b> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` |
| | |
| = help: consider adding the following bound: `'a: 'b` |
| |
| help: `'b` and `'a` must be the same: replace one with the other |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:18:5 |
| | |
| LL | fn unwrap_nested<'a, 'b>(a: *const W<W<dyn A<'a>>>) -> *const W<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
| | |
| = help: consider adding the following bound: `'b: 'a` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:18:5 |
| | |
| LL | fn unwrap_nested<'a, 'b>(a: *const W<W<dyn A<'a>>>) -> *const W<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` |
| | |
| = help: consider adding the following bound: `'a: 'b` |
| |
| help: `'b` and `'a` must be the same: replace one with the other |
| | |
| = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:24:5 |
| | |
| LL | fn rewrap<'a, 'b>(a: *const W<dyn A<'a>>) -> *const X<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
| | |
| = help: consider adding the following bound: `'b: 'a` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:24:5 |
| | |
| LL | fn rewrap<'a, 'b>(a: *const W<dyn A<'a>>) -> *const X<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` |
| | |
| = help: consider adding the following bound: `'a: 'b` |
| |
| help: `'b` and `'a` must be the same: replace one with the other |
| | |
| = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:30:5 |
| | |
| LL | fn rewrap_nested<'a, 'b>(a: *const W<W<dyn A<'a>>>) -> *const W<X<dyn A<'b>>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
| | |
| = help: consider adding the following bound: `'b: 'a` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:30:5 |
| | |
| LL | fn rewrap_nested<'a, 'b>(a: *const W<W<dyn A<'a>>>) -> *const W<X<dyn A<'b>>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` |
| | |
| = help: consider adding the following bound: `'a: 'b` |
| |
| help: `'b` and `'a` must be the same: replace one with the other |
| | |
| = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:36:5 |
| | |
| LL | fn wrap<'a, 'b>(a: *const dyn A<'a>) -> *const W<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
| | |
| = help: consider adding the following bound: `'b: 'a` |
| |
| error: lifetime may not live long enough |
| --> $DIR/ptr-to-trait-obj-wrap-different-regions.rs:36:5 |
| | |
| LL | fn wrap<'a, 'b>(a: *const dyn A<'a>) -> *const W<dyn A<'b>> { |
| | -- -- lifetime `'b` defined here |
| | | |
| | lifetime `'a` defined here |
| LL | a as _ |
| | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` |
| | |
| = help: consider adding the following bound: `'a: 'b` |
| |
| help: `'b` and `'a` must be the same: replace one with the other |
| | |
| = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| |
| error: aborting due to 10 previous errors |
| |