<span class='op'>+=</span> <span class='number'>1</span>;
        });
    }

    <span class='ident'>thread</span>::<span class='ident'>sleep</span>(<span class='ident'>Duration</span>::<span class='ident'>from_millis</span>(<span class='number'>50</span>));
}</pre>

<!-- This gives us an error: -->

<p>以下のようなエラーがでます。</p>

<pre><code class="language-text">8:17 error: capture of moved value: `data`
        data[i] += 1;
        ^~~~
</code></pre>

<!-- Rust knows this wouldn't be 