4 ms·
The bug being fixed was that you could use `match` to return a borrowed object with a new lifetime? Am I interpreting this correctly? You should never be able t
by jzelinskie 8y ago
The bug being fixed was that you could use `match` to return a borrowed object with a new lifetime? Am I interpreting this correctly? You should never be able to do this, right?
- topspin 8y agoYes, you should never be able to do this, thus it is a bug. The bug, at least as it appears in the example presented in the blog post, allows you to obtain a reference to a member of a tuple that will outlive the tuple itself.