<p dir="auto">OS: Windows 7 32 bit, using MinGW version suggested by wiki (because last one just fails)</p>
<p dir="auto">Trying to compile example from website.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/aa477ebb9a19385b6edcb74affad405738b0a571345167a7b7bf90f5a8cc99cc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323635363936352f3137343937312f38383330313838382d376233332d313165322d383339372d3538343738613536333135372e4a5047"><img src="https://camo.githubusercontent.com/aa477ebb9a19385b6edcb74affad405738b0a571345167a7b7bf90f5a8cc99cc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323635363936352f3137343937312f38383330313838382d376233332d313165322d383339372d3538343738613536333135372e4a5047" alt=" " data-canonical-src="https://f.cloud.github.com/assets/2656965/174971/88301888-7b33-11e2-8397-58478a563157.JPG" style="max-width: 100%;"></a></p>
<p dir="auto">description:</p>
<p dir="auto">this code works:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use core::*;

fn main() {
    for [&quot;Alice&quot;, &quot;Bob&quot;, &quot;Carol&quot;].each |&amp;name| {
        do task::spawn {
            io::println(name);
        }
    }
}"><pre class="notranslate"><span class="pl-k">use</span> core<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span>

<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">for</span> <span class="pl-kos">[</span><span class="pl-s">"Alice"</span><span class="pl-kos">,</span> <span class="pl-s">"Bob"</span><span class="pl-kos">,</span> <span class="pl-s">"Carol"</span><span class="pl-kos">]</span><span class="pl-kos">.</span>each |<span class="pl-c1">&amp;</span>name| <span class="pl-kos">{</span>
        do task<span class="pl-kos">::</span><span class="pl-v">spawn</span> <span class="pl-kos">{</span>
            <span class="pl-c1">io</span><span class="pl-kos">:</span><span class="pl-kos">:</span>println<span class="pl-kos">(</span>name<span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">but when I add</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let v = rand::Rng().shuffle([1, 2, 3]);"><pre class="notranslate"><span class="pl-k">let</span> v = rand<span class="pl-kos">::</span><span class="pl-v">Rng</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">shuffle</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">like</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use core::*;

fn main() {
    for [&quot;Alice&quot;, &quot;Bob&quot;, &quot;Carol&quot;].each |&amp;name| {
        do task::spawn {
            let v = rand::Rng().shuffle([1, 2, 3]);
            io::println(name);
        }
    }
}"><pre class="notranslate"><span class="pl-k">use</span> core<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span>

<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">for</span> <span class="pl-kos">[</span><span class="pl-s">"Alice"</span><span class="pl-kos">,</span> <span class="pl-s">"Bob"</span><span class="pl-kos">,</span> <span class="pl-s">"Carol"</span><span class="pl-kos">]</span><span class="pl-kos">.</span>each |<span class="pl-c1">&amp;</span>name| <span class="pl-kos">{</span>
        do task<span class="pl-kos">::</span><span class="pl-v">spawn</span> <span class="pl-kos">{</span>
            let v = <span class="pl-c1">rand</span><span class="pl-kos">:</span><span class="pl-kos">:</span><span class="pl-v">Rng</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span>shuffle<span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
            io<span class="pl-kos">::</span>println<span class="pl-kos">(</span>name<span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">it fails with error :</p>
<p dir="auto">The procedure entry point ... rand... extension...  not found in the  .... dll</p>
<p dir="auto">btw: why does rust code highlighting on github look like plain text?</p>
<p dir="auto">From ssylvan:</p>
<p dir="auto">Consider this a very preliminary bug report, I only gave it about two<br>
minutes because I have to run, so I could probably track this down<br>
further with some process monitor logging. In case this is useful as<br>
is I'll just tell you here.</p>
<p dir="auto">On 64-bit Windows 8 RTM I get this in a message box when running the<br>
executable produced by compiling the example on rust-lang.org.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------
helloworld.exe - Entry Point Not Found
---------------------------
The procedure entry point
_ZN4rand14__extensions__10meth_1235514gen_uint_range17_be256aac3933fdb73_04E
could not be located in the dynamic link library
D:\Programming\rust\helloworld.exe."><pre class="notranslate"><code class="notranslate">---------------------------
helloworld.exe - Entry Point Not Found
---------------------------
The procedure entry point
_ZN4rand14__extensions__10meth_1235514gen_uint_range17_be256aac3933fdb73_04E
could not be located in the dynamic link library
D:\Programming\rust\helloworld.exe.
</code></pre></div>