Rust references are not the same thing as C++ references.
Here's a good reason why this type of lifetime elision isn't done: