]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/type-alias-free-regions.stderr
Update upstream source from tag 'upstream/1.31.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / nll / type-alias-free-regions.stderr
CommitLineData
0bf4aa26
XL
1error: unsatisfied lifetime constraints
2 --> $DIR/type-alias-free-regions.rs:19:9
3 |
4LL | impl<'a> FromBox<'a> for c<'a> {
5 | -- lifetime `'a` defined here
6LL | fn from_box(b: Box<b>) -> Self {
7 | - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>`
8LL | c { f: b } //~ ERROR
9 | ^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
10
11error: unsatisfied lifetime constraints
12 --> $DIR/type-alias-free-regions.rs:29:9
13 |
14LL | impl<'a> FromTuple<'a> for c<'a> {
15 | -- lifetime `'a` defined here
16LL | fn from_tuple(b: (b,)) -> Self {
17 | - has type `(std::boxed::Box<&'1 isize>,)`
18LL | c { f: Box::new(b.0) } //~ ERROR
19 | ^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'a`
20
21error: aborting due to 2 previous errors
22