<p dir="auto">Test case:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
    let x = 2i;
    let _y = move || 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> x = <span class="pl-c1">2</span>i<span class="pl-kos">;</span>
    <span class="pl-k">let</span> _y = <span class="pl-k">move</span> || x<span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::PointerType*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; &quot;cast&lt;Ty&gt;() argument of incompatible type!&quot;' failed.
Aborted"><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::PointerType*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; "cast&lt;Ty&gt;() argument of incompatible type!"' failed.
Aborted
</code></pre></div>
<h3 dir="auto">STR</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
    let n = 0u;

    let f = move || n += 1;
}"><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> n = <span class="pl-c1">0</span>u<span class="pl-kos">;</span>

    <span class="pl-k">let</span> f = <span class="pl-k">move</span> || n += <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Output</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc: /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty&lt;X, Y*&gt;::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty&lt;X, Y*&gt;::ret_type = llvm::PointerType*]: Assertion `isa&lt;X&gt;(Val) &amp;&amp; &quot;cast&lt;Ty&gt;() argument of incompatible type!&quot;' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffeffff480 (LWP 12192)]
0x00007ffff6f638a7 in raise () from /lib64/libc.so.6
(gdb) backtrace
#0  0x00007ffff6f638a7 in raise () from /lib64/libc.so.6
#1  0x00007ffff6f64c3a in abort () from /lib64/libc.so.6
#2  0x00007ffff6f5c7fd in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff6f5c8b2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff261305c in ?? () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#5  0x00007ffff33413ac in llvm::LoadInst::LoadInst(llvm::Value*, char const*, bool, llvm::Instruction*) () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#6  0x00007ffff32a29bf in LLVMBuildLoad () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#7  0x00007ffff7773334 in trans::builder::Builder$LT$$x27a$C$$x20$x27tcx$GT$::load::h3c2c0a39157367b2Gsr () from /usr/lib64/librustc_trans-4e7c5e5c.so
#8  0x00007ffff76f6f32 in trans::build::Load::hb999a33dee821b74Jnq () from /usr/lib64/librustc_trans-4e7c5e5c.so
#9  0x00007ffff772cc52 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#10 0x00007ffff7720e0a in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#11 0x00007ffff76dd854 in trans::expr::trans_into::h7dc261a5d77d2dbciQh () from /usr/lib64/librustc_trans-4e7c5e5c.so
#12 0x00007ffff76ddadd in trans::controlflow::trans_block::h40e78d4cabd8c783p2d () from /usr/lib64/librustc_trans-4e7c5e5c.so
#13 0x00007ffff7790e50 in trans::base::trans_closure::h9baffc02e3bf0daf6Au () from /usr/lib64/librustc_trans-4e7c5e5c.so
#14 0x00007ffff7732f6e in trans::closure::trans_expr_fn::h04ecc83b7400adfaVWy () from /usr/lib64/librustc_trans-4e7c5e5c.so
#15 0x00007ffff771efca in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#16 0x00007ffff76dd746 in trans::expr::trans_into::h7dc261a5d77d2dbciQh () from /usr/lib64/librustc_trans-4e7c5e5c.so
#17 0x00007ffff77d64cd in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#18 0x00007ffff77d58b4 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#19 0x00007ffff77881f4 in trans::_match::store_local::hdd8a0d2165cb659fx9x () from /usr/lib64/librustc_trans-4e7c5e5c.so
#20 0x00007ffff76dcd0e in trans::base::init_local::h0bd956a2c65b5d51NIt () from /usr/lib64/librustc_trans-4e7c5e5c.so
#21 0x00007ffff76dc332 in trans::controlflow::trans_stmt::h3a5fa88dc3d60c9fhXd () from /usr/lib64/librustc_trans-4e7c5e5c.so
#22 0x00007ffff76dd9d9 in trans::controlflow::trans_block::h40e78d4cabd8c783p2d () from /usr/lib64/librustc_trans-4e7c5e5c.so
#23 0x00007ffff7790e50 in trans::base::trans_closure::h9baffc02e3bf0daf6Au () from /usr/lib64/librustc_trans-4e7c5e5c.so
#24 0x00007ffff76d0a77 in trans::base::trans_fn::h114729a05667bb1dWMu () from /usr/lib64/librustc_trans-4e7c5e5c.so
#25 0x00007ffff76cdc8e in trans::base::trans_item::h7c2b438b1bce4863G8u () from /usr/lib64/librustc_trans-4e7c5e5c.so
#26 0x00007ffff779a408 in trans::base::trans_crate::he69e63600c94fe5506v () from /usr/lib64/librustc_trans-4e7c5e5c.so
#27 0x00007ffff7844945 in driver::driver::phase_4_translate_to_llvm::h81bcee50dff289e18oS () from /usr/lib64/librustc_trans-4e7c5e5c.so
#28 0x00007ffff7834105 in driver::driver::compile_input::h117f94c1b348a398YVR () from /usr/lib64/librustc_trans-4e7c5e5c.so
#29 0x00007ffff78b7cd7 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#30 0x00007ffff78b62fc in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#31 0x00007ffff76c2f78 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#32 0x00007ffff76c2e83 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#33 0x00007ffff7bd6be2 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#34 0x00007ffff7390fec in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#35 0x00007ffff7390fd6 in rust_try () from /usr/lib64/librustrt-4e7c5e5c.so
#36 0x00007ffff733f843 in unwind::try::h03ead95328113b2fIZc () from /usr/lib64/librustrt-4e7c5e5c.so
#37 0x00007ffff733f70c in task::Task::run::hed7dc0cf620a0172y5b () from /usr/lib64/librustrt-4e7c5e5c.so
#38 0x00007ffff7bd69e7 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#39 0x00007ffff7340f35 in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#40 0x00007ffff1e0e294 in start_thread () from /lib64/libpthread.so.0
#41 0x00007ffff70181ed in clone () from /lib64/libc.so.6"><pre class="notranslate">rustc<span class="pl-kos">:</span> /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/llvm/include/llvm/<span class="pl-v">Support</span>/<span class="pl-v">Casting</span><span class="pl-kos">.</span><span class="pl-c1">h</span><span class="pl-kos">:</span><span class="pl-c1">237</span><span class="pl-kos">:</span> typename llvm<span class="pl-kos">::</span>cast_retty&lt;<span class="pl-v">X</span><span class="pl-kos">,</span> <span class="pl-v">Y</span><span class="pl-c1">*</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">ret_type</span> llvm<span class="pl-kos">::</span>cast<span class="pl-kos">(</span><span class="pl-v">Y</span><span class="pl-c1">*</span><span class="pl-kos">)</span> <span class="pl-kos">[</span>with <span class="pl-v">X</span> = llvm<span class="pl-kos">::</span><span class="pl-v">PointerType</span><span class="pl-kos">;</span> <span class="pl-v">Y</span> = llvm<span class="pl-kos">::</span><span class="pl-v">Type</span><span class="pl-kos">;</span> typename llvm<span class="pl-kos">::</span>cast_retty&lt;<span class="pl-v">X</span><span class="pl-kos">,</span> <span class="pl-v">Y</span><span class="pl-c1">*</span>&gt;<span class="pl-kos">::</span>ret_type = llvm<span class="pl-kos">::</span><span class="pl-v">PointerType</span><span class="pl-c1">*</span><span class="pl-kos">]</span><span class="pl-kos">:</span> <span class="pl-v">Assertion</span> `isa&lt;<span class="pl-v">X</span>&gt;<span class="pl-kos">(</span><span class="pl-v">Val</span><span class="pl-kos">)</span> &amp;&amp; <span class="pl-s">"cast&lt;Ty&gt;() argument of incompatible type!"</span><span class="pl-c1">'</span> failed<span class="pl-kos">.</span>

<span class="pl-c1">Program</span> received signal <span class="pl-v">SIGABRT</span><span class="pl-kos">,</span> <span class="pl-v">Aborted</span><span class="pl-kos">.</span>
<span class="pl-kos">[</span><span class="pl-v">Switching</span> to <span class="pl-v">Thread</span> <span class="pl-c1">0x7fffeffff480</span> <span class="pl-kos">(</span><span class="pl-v">LWP</span> <span class="pl-c1">12192</span><span class="pl-kos">)</span><span class="pl-kos">]</span>
<span class="pl-c1">0x00007ffff6f638a7</span> <span class="pl-k">in</span> <span class="pl-en">raise</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
<span class="pl-kos">(</span>gdb<span class="pl-kos">)</span> backtrace
#<span class="pl-c1">0</span>  <span class="pl-c1">0x00007ffff6f638a7</span> <span class="pl-k">in</span> <span class="pl-en">raise</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">1</span>  <span class="pl-c1">0x00007ffff6f64c3a</span> <span class="pl-k">in</span> <span class="pl-en">abort</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">2</span>  <span class="pl-c1">0x00007ffff6f5c7fd</span> <span class="pl-k">in</span> <span class="pl-en">__assert_fail_base</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">3</span>  <span class="pl-c1">0x00007ffff6f5c8b2</span> <span class="pl-k">in</span> <span class="pl-en">__assert_fail</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">4</span>  <span class="pl-c1">0x00007ffff261305c</span> <span class="pl-k">in</span> ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">5</span>  <span class="pl-c1">0x00007ffff33413ac</span> in llvm<span class="pl-kos">::</span><span class="pl-smi">LoadInst</span><span class="pl-kos">::</span><span class="pl-v">LoadInst</span><span class="pl-kos">(</span>llvm<span class="pl-kos">::</span><span class="pl-v">Value</span><span class="pl-c1">*</span><span class="pl-kos">,</span> char const<span class="pl-c1">*</span><span class="pl-kos">,</span> bool<span class="pl-kos">,</span> llvm<span class="pl-kos">::</span><span class="pl-v">Instruction</span><span class="pl-c1">*</span><span class="pl-kos">)</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">6</span>  <span class="pl-c1">0x00007ffff32a29bf</span> in <span class="pl-v">LLVMBuildLoad</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">7</span>  <span class="pl-c1">0x00007ffff7773334</span> in trans<span class="pl-kos">::</span>builder<span class="pl-kos">::</span><span class="pl-smi">Builder</span>$LT$$x27a$C$$x20$x27tcx$GT$<span class="pl-kos">::</span>load<span class="pl-kos">::</span><span class="pl-en">h3c2c0a39157367b2Gsr</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">8</span>  <span class="pl-c1">0x00007ffff76f6f32</span> in trans<span class="pl-kos">::</span>build<span class="pl-kos">::</span><span class="pl-smi">Load</span><span class="pl-kos">::</span><span class="pl-en">hb999a33dee821b74Jnq</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">9</span>  <span class="pl-c1">0x00007ffff772cc52</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">10</span> <span class="pl-c1">0x00007ffff7720e0a</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">11</span> <span class="pl-c1">0x00007ffff76dd854</span> in trans<span class="pl-kos">::</span>expr<span class="pl-kos">::</span>trans_into<span class="pl-kos">::</span><span class="pl-en">h7dc261a5d77d2dbciQh</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">12</span> <span class="pl-c1">0x00007ffff76ddadd</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_block<span class="pl-kos">::</span><span class="pl-en">h40e78d4cabd8c783p2d</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">13</span> <span class="pl-c1">0x00007ffff7790e50</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_closure<span class="pl-kos">::</span><span class="pl-en">h9baffc02e3bf0daf6Au</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">14</span> <span class="pl-c1">0x00007ffff7732f6e</span> in trans<span class="pl-kos">::</span>closure<span class="pl-kos">::</span>trans_expr_fn<span class="pl-kos">::</span><span class="pl-en">h04ecc83b7400adfaVWy</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">15</span> <span class="pl-c1">0x00007ffff771efca</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">16</span> <span class="pl-c1">0x00007ffff76dd746</span> in trans<span class="pl-kos">::</span>expr<span class="pl-kos">::</span>trans_into<span class="pl-kos">::</span><span class="pl-en">h7dc261a5d77d2dbciQh</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">17</span> <span class="pl-c1">0x00007ffff77d64cd</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">18</span> <span class="pl-c1">0x00007ffff77d58b4</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">19</span> <span class="pl-c1">0x00007ffff77881f4</span> in trans<span class="pl-kos">::</span>_match<span class="pl-kos">::</span>store_local<span class="pl-kos">::</span><span class="pl-en">hdd8a0d2165cb659fx9x</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">20</span> <span class="pl-c1">0x00007ffff76dcd0e</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>init_local<span class="pl-kos">::</span><span class="pl-en">h0bd956a2c65b5d51NIt</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">21</span> <span class="pl-c1">0x00007ffff76dc332</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_stmt<span class="pl-kos">::</span><span class="pl-en">h3a5fa88dc3d60c9fhXd</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">22</span> <span class="pl-c1">0x00007ffff76dd9d9</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_block<span class="pl-kos">::</span><span class="pl-en">h40e78d4cabd8c783p2d</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">23</span> <span class="pl-c1">0x00007ffff7790e50</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_closure<span class="pl-kos">::</span><span class="pl-en">h9baffc02e3bf0daf6Au</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">24</span> <span class="pl-c1">0x00007ffff76d0a77</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_fn<span class="pl-kos">::</span><span class="pl-en">h114729a05667bb1dWMu</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">25</span> <span class="pl-c1">0x00007ffff76cdc8e</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_item<span class="pl-kos">::</span><span class="pl-en">h7c2b438b1bce4863G8u</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">26</span> <span class="pl-c1">0x00007ffff779a408</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_crate<span class="pl-kos">::</span><span class="pl-en">he69e63600c94fe5506v</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">27</span> <span class="pl-c1">0x00007ffff7844945</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>phase_4_translate_to_llvm<span class="pl-kos">::</span><span class="pl-en">h81bcee50dff289e18oS</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">28</span> <span class="pl-c1">0x00007ffff7834105</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span><span class="pl-en">h117f94c1b348a398YVR</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">29</span> <span class="pl-c1">0x00007ffff78b7cd7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">30</span> <span class="pl-c1">0x00007ffff78b62fc</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">31</span> <span class="pl-c1">0x00007ffff76c2f78</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">32</span> <span class="pl-c1">0x00007ffff76c2e83</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">33</span> <span class="pl-c1">0x00007ffff7bd6be2</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">34</span> <span class="pl-c1">0x00007ffff7390fec</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">35</span> <span class="pl-c1">0x00007ffff7390fd6</span> in <span class="pl-en">rust_try</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">36</span> <span class="pl-c1">0x00007ffff733f843</span> in unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span><span class="pl-en">h03ead95328113b2fIZc</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">37</span> <span class="pl-c1">0x00007ffff733f70c</span> in task<span class="pl-kos">::</span><span class="pl-smi">Task</span><span class="pl-kos">::</span>run<span class="pl-kos">::</span><span class="pl-en">hed7dc0cf620a0172y5b</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">38</span> <span class="pl-c1">0x00007ffff7bd69e7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">39</span> <span class="pl-c1">0x00007ffff7340f35</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">40</span> <span class="pl-c1">0x00007ffff1e0e294</span> in <span class="pl-en">start_thread</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libpthread<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">0</span>
#<span class="pl-c1">41</span> <span class="pl-c1">0x00007ffff70181ed</span> <span class="pl-k">in</span> clone <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span></pre></div>
<h3 dir="auto">Version</h3>
<p dir="auto">PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49429229" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19113" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/19113/hovercard" href="https://github.com/rust-lang/rust/pull/19113">#19113</a> on top of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/399ff259e18c1061aa4ea60856fcecb486d36624/hovercard" href="https://github.com/rust-lang/rust/commit/399ff259e18c1061aa4ea60856fcecb486d36624"><tt>399ff25</tt></a></p>
<p dir="auto">It also fails in <a href="http://is.gd/VUzOln" rel="nofollow">the playpen</a>, which has version:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (8ed288edb 2014-11-06 16:52:09 +0000)"><pre class="notranslate">rustc <span class="pl-c1">0.13</span><span class="pl-kos">.</span><span class="pl-c1">0</span>-<span class="pl-en">dev</span> <span class="pl-kos">(</span><span class="pl-c1">8</span>ed288edb <span class="pl-c1">2014</span>-<span class="pl-c1">11</span>-<span class="pl-c1">06</span> <span class="pl-c1">16</span><span class="pl-kos">:</span><span class="pl-c1">52</span><span class="pl-kos">:</span><span class="pl-c1">09</span> +<span class="pl-c1">0000</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">I think we're not supposed to use the <code class="notranslate">move</code> keyword with boxed closures?</p>