all take a moment to thank Rust for making this easier.</p>

<p>Actually passing references to outer scopes will cause Rust to infer
a larger lifetime:</p>

<span class='rusttest'>fn main() {
    let x = 0;
let z;
let y = &amp;x;
z = y;
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>let</span> <span class='ident'>x</span> <span class='op'>=</span> <span class='number'>0</span>;
<span class='kw'>let</span> <span class='ident'>z</span>;
<span class='kw'>let</span> <span class='ident'>y</spa