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