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