<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
    let mut x = 1us;
    let y = &amp;x;
    &amp;mut x;





}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">let</span> <span class="pl-k">mut</span> x = <span class="pl-c1">1</span>us<span class="pl-kos">;</span>
    <span class="pl-k">let</span> y = <span class="pl-c1">&amp;</span>x<span class="pl-kos">;</span>
    <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> x<span class="pl-kos">;</span>





<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test2.rs:10:2: 10:2 note: previous borrow ends here
test2.rs:1 fn main() {
...
test2.rs:10 }
            ^"><pre class="notranslate"><code class="notranslate">test2.rs:10:2: 10:2 note: previous borrow ends here
test2.rs:1 fn main() {
...
test2.rs:10 }
            ^
</code></pre></div>
<p dir="auto">For example, in this case there should be two spaces between <code class="notranslate">8</code> and <code class="notranslate">fn</code> instead of one.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test2.rs:8:1: 12:2 warning: code is never used: `foo`, #[warn(dead_code)] on by default
test2.rs:8 fn foo() {
test2.rs:9 
test2.rs:10 
test2.rs:11 
test2.rs:12 }"><pre class="notranslate">test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">8</span><span class="pl-kos">:</span><span class="pl-c1">1</span><span class="pl-kos">:</span> <span class="pl-c1">12</span><span class="pl-kos">:</span><span class="pl-c1">2</span> warning<span class="pl-kos">:</span> code is never used<span class="pl-kos">:</span> `foo`<span class="pl-kos">,</span> #<span class="pl-kos">[</span><span class="pl-en">warn</span><span class="pl-kos">(</span>dead_code<span class="pl-kos">)</span><span class="pl-kos">]</span> on by <span class="pl-k">default</span>
test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">8</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">9</span> 
test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">10</span> 
test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">11</span> 
test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">12</span> <span class="pl-kos">}</span></pre></div>