]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/type-alias-free-regions.nll.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / nll / type-alias-free-regions.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/type-alias-free-regions.rs:17: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 `Box<Box<&'1 isize>>`
8 LL | C { f: b }
9 | ^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
10
11 error: lifetime may not live long enough
12 --> $DIR/type-alias-free-regions.rs:27: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 `(Box<&'1 isize>,)`
18 LL | C { f: Box::new(b.0) }
19 | ^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
20
21 error: aborting due to 2 previous errors
22