Rvalue lifetimes

from blog baby steps, | ↗ original
We need to clarify our story on rvalue lifetimes. This is related to issue #3387 and also various recent and not-so-recent discussions on IRC. The basic question is how long an rvalue lives when the program creates pointers into it. To understand the rough issues, first consider this program: let x = foo(); match x { Some(ref y) =>...