<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(phase)]

#[phase(syntax, link)] extern crate std;"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>phase<span class="pl-kos">)</span><span class="pl-kos">]</span></span>

<span class="pl-c1">#<span class="pl-kos">[</span>phase<span class="pl-kos">(</span>syntax, link<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">extern</span> <span class="pl-k">crate</span> std<span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="warning: using multiple versions of crate `std`
foo.rs:1:1: 1:1 note: used here
foo.rs:1 #![feature(phase)]
         ^
note: crate_id: std#0.11.0-pre
foo.rs:3:24: 3:41 note: used here
foo.rs:3 #[phase(syntax, link)] extern crate std;
                                ^~~~~~~~~~~~~~~~~
note: crate_id: std#0.11.0-pre
error: duplicate entry for `malloc`
error: duplicate entry for `free`
error: duplicate entry for `strdup_uniq`
error: duplicate entry for `eh_personality`
error: duplicate entry for `managed_heap`
error: duplicate entry for `gc`
error: aborting due to 6 previous errors"><pre class="notranslate"><code class="notranslate">warning: using multiple versions of crate `std`
foo.rs:1:1: 1:1 note: used here
foo.rs:1 #![feature(phase)]
         ^
note: crate_id: std#0.11.0-pre
foo.rs:3:24: 3:41 note: used here
foo.rs:3 #[phase(syntax, link)] extern crate std;
                                ^~~~~~~~~~~~~~~~~
note: crate_id: std#0.11.0-pre
error: duplicate entry for `malloc`
error: duplicate entry for `free`
error: duplicate entry for `strdup_uniq`
error: duplicate entry for `eh_personality`
error: duplicate entry for `managed_heap`
error: duplicate entry for `gc`
error: aborting due to 6 previous errors
</code></pre></div>
<p dir="auto">This should link in the same version of libstd, not two separate versions.</p>
<p dir="auto">My keyboard layout is french canadian and the question mark shortcut does not work properly. It seems that <a href="https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/main.js#L77">this</a> line is causing the issue. To make a question mark, I use <code class="notranslate">SHIFT+6</code>, so it doesn't fire one event with a <code class="notranslate">which</code>of 191, but two events, one with 54 (6) and one with 16 (SHIFT).</p>