]>
Commit | Line | Data |
---|---|---|
0bf4aa26 XL |
1 | error: unsatisfied lifetime constraints |
2 | --> $DIR/type-alias-free-regions.rs:19:9 | |
3 | | | |
4 | LL | impl<'a> FromBox<'a> for c<'a> { | |
5 | | -- lifetime `'a` defined here | |
6 | LL | fn from_box(b: Box<b>) -> Self { | |
7 | | - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>` | |
8 | LL | c { f: b } //~ ERROR | |
9 | | ^^^^^^^^^^ returning this value requires that `'1` must outlive `'a` | |
10 | ||
11 | error: unsatisfied lifetime constraints | |
12 | --> $DIR/type-alias-free-regions.rs:29:9 | |
13 | | | |
14 | LL | impl<'a> FromTuple<'a> for c<'a> { | |
15 | | -- lifetime `'a` defined here | |
16 | LL | fn from_tuple(b: (b,)) -> Self { | |
17 | | - has type `(std::boxed::Box<&'1 isize>,)` | |
18 | LL | c { f: Box::new(b.0) } //~ ERROR | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'a` | |
20 | ||
21 | error: aborting due to 2 previous errors | |
22 |