lass='ident'>y</span>;
        }
    }
}</pre>

<h1 id='example-references-that-outlive-referents' class='section-header'><a href='#example-references-that-outlive-referents'>Example: references that outlive referents</a></h1>
<p>Alright, let&#39;s look at some of those examples from before:</p>

<span class='rusttest'>fn main() {
    fn as_str(data: &amp;u32) -&gt; &amp;str {
    let s = format!(&quot;{}&quot;, data);
    &amp;s
}
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>fn</span> 