blob: 05f2c9309446a1e42e6c624f98acaf5833cb7a4f [file] [log] [blame]
error: unsatisfied lifetime constraints
--> $DIR/type-alias-free-regions.rs:19:9
|
LL | impl<'a> FromBox<'a> for c<'a> {
| -- lifetime `'a` defined here
LL | fn from_box(b: Box<b>) -> Self {
| - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>`
LL | c { f: b } //~ ERROR
| ^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
error: unsatisfied lifetime constraints
--> $DIR/type-alias-free-regions.rs:29:9
|
LL | impl<'a> FromTuple<'a> for c<'a> {
| -- lifetime `'a` defined here
LL | fn from_tuple(b: (b,)) -> Self {
| - has type `(std::boxed::Box<&'1 isize>,)`
LL | c { f: Box::new(b.0) } //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
error: aborting due to 2 previous errors