Sample Code: ======================= fn transmute_lifetime (t: &'a (T,)) -> &'b T { match (&t, ()) { ((t,), ()) => t, } } ======================= I thought Obfuscated-C was hard to read. Then C++ with all its templates. Now, I'm thinking Rust has taken the prize.
- Every reference has a different explicit lifetime—one input, one output—which would rarely ever show up in real code.
- There is a tuple with 1 element, which I have never seen in the wild.
- It's matching against `()`, the void type, which is never done because it's useless.