]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements |
0731742a | 2 | --> $DIR/issue-52213.rs:2:11 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | match (&t,) { |
8faf50e0 XL |
5 | | ^^^^^ |
6 | | | |
c295e0f8 | 7 | note: first, the lifetime cannot outlive the lifetime `'a` as defined here... |
0731742a | 8 | --> $DIR/issue-52213.rs:1:23 |
8faf50e0 XL |
9 | | |
10 | LL | fn transmute_lifetime<'a, 'b, T>(t: &'a (T,)) -> &'b T { | |
11 | | ^^ | |
60c5eb7d XL |
12 | note: ...so that the types are compatible |
13 | --> $DIR/issue-52213.rs:2:11 | |
14 | | | |
15 | LL | match (&t,) { | |
16 | | ^^^^^ | |
f9f354fc XL |
17 | = note: expected `(&&(T,),)` |
18 | found `(&&'a (T,),)` | |
c295e0f8 | 19 | note: but, the lifetime must be valid for the lifetime `'b` as defined here... |
0731742a | 20 | --> $DIR/issue-52213.rs:1:27 |
8faf50e0 XL |
21 | | |
22 | LL | fn transmute_lifetime<'a, 'b, T>(t: &'a (T,)) -> &'b T { | |
23 | | ^^ | |
24 | note: ...so that reference does not outlive borrowed content | |
0731742a | 25 | --> $DIR/issue-52213.rs:3:20 |
8faf50e0 XL |
26 | | |
27 | LL | ((u,),) => u, | |
28 | | ^ | |
29 | ||
30 | error: aborting due to previous error | |
31 | ||
e74abb32 | 32 | For more information about this error, try `rustc --explain E0495`. |