|
1 | 1 | error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
|
2 |
| - --> $DIR/type-alias-free-regions.rs:17:9 |
| 2 | + --> $DIR/type-alias-free-regions.rs:21:9 |
3 | 3 | |
|
4 | 4 | LL | C { f: b }
|
5 | 5 | | ^
|
6 | 6 | |
|
7 | 7 | note: first, the lifetime cannot outlive the anonymous lifetime defined here...
|
8 |
| - --> $DIR/type-alias-free-regions.rs:16:24 |
| 8 | + --> $DIR/type-alias-free-regions.rs:20:24 |
9 | 9 | |
|
10 | 10 | LL | fn from_box(b: Box<B>) -> Self {
|
11 | 11 | | ^
|
12 | 12 | note: ...so that the expression is assignable
|
13 |
| - --> $DIR/type-alias-free-regions.rs:17:16 |
| 13 | + --> $DIR/type-alias-free-regions.rs:21:16 |
14 | 14 | |
|
15 | 15 | LL | C { f: b }
|
16 | 16 | | ^
|
17 | 17 | = note: expected `Box<Box<&isize>>`
|
18 | 18 | found `Box<Box<&isize>>`
|
19 | 19 | note: but, the lifetime must be valid for the lifetime `'a` as defined here...
|
20 |
| - --> $DIR/type-alias-free-regions.rs:15:6 |
| 20 | + --> $DIR/type-alias-free-regions.rs:19:6 |
21 | 21 | |
|
22 | 22 | LL | impl<'a> FromBox<'a> for C<'a> {
|
23 | 23 | | ^^
|
24 | 24 | note: ...so that the types are compatible
|
25 |
| - --> $DIR/type-alias-free-regions.rs:17:9 |
| 25 | + --> $DIR/type-alias-free-regions.rs:21:9 |
26 | 26 | |
|
27 | 27 | LL | C { f: b }
|
28 | 28 | | ^^^^^^^^^^
|
29 | 29 | = note: expected `C<'a>`
|
30 | 30 | found `C<'_>`
|
31 | 31 |
|
32 | 32 | error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
|
33 |
| - --> $DIR/type-alias-free-regions.rs:27:16 |
| 33 | + --> $DIR/type-alias-free-regions.rs:31:16 |
34 | 34 | |
|
35 | 35 | LL | C { f: Box::new(b.0) }
|
36 | 36 | | ^^^^^^^^^^^^^
|
37 | 37 | |
|
38 | 38 | note: first, the lifetime cannot outlive the anonymous lifetime defined here...
|
39 |
| - --> $DIR/type-alias-free-regions.rs:26:23 |
| 39 | + --> $DIR/type-alias-free-regions.rs:30:23 |
40 | 40 | |
|
41 | 41 | LL | fn from_tuple(b: (B,)) -> Self {
|
42 | 42 | | ^
|
43 | 43 | note: ...so that the expression is assignable
|
44 |
| - --> $DIR/type-alias-free-regions.rs:27:25 |
| 44 | + --> $DIR/type-alias-free-regions.rs:31:25 |
45 | 45 | |
|
46 | 46 | LL | C { f: Box::new(b.0) }
|
47 | 47 | | ^^^
|
48 | 48 | = note: expected `Box<&isize>`
|
49 | 49 | found `Box<&isize>`
|
50 | 50 | note: but, the lifetime must be valid for the lifetime `'a` as defined here...
|
51 |
| - --> $DIR/type-alias-free-regions.rs:25:6 |
| 51 | + --> $DIR/type-alias-free-regions.rs:29:6 |
52 | 52 | |
|
53 | 53 | LL | impl<'a> FromTuple<'a> for C<'a> {
|
54 | 54 | | ^^
|
55 | 55 | note: ...so that the types are compatible
|
56 |
| - --> $DIR/type-alias-free-regions.rs:27:9 |
| 56 | + --> $DIR/type-alias-free-regions.rs:31:9 |
57 | 57 | |
|
58 | 58 | LL | C { f: Box::new(b.0) }
|
59 | 59 | | ^^^^^^^^^^^^^^^^^^^^^^
|
|
0 commit comments