<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum test { a }; let t: i64 = unsafe { std::cast::transmute(a) };"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">test</span> <span class="pl-kos">{</span> a <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">let</span> t<span class="pl-kos">:</span> <span class="pl-smi">i64</span> = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> std<span class="pl-kos">::</span>cast<span class="pl-kos">::</span><span class="pl-en">transmute</span><span class="pl-kos">(</span>a<span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">rustc output: <a href="https://gist.github.com/slaren/6078846">https://gist.github.com/slaren/6078846</a></p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
    unsafe { std::cast::transmute::&lt;[int,..1],int&gt;([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">unsafe</span> <span class="pl-kos">{</span> std<span class="pl-kos">::</span>cast<span class="pl-kos">::</span><span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">,</span>..<span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-smi">int</span><span class="pl-kos">&gt;</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-kos">)</span> <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="rust: task failed at 'option::get none', /rust/src/libstd/option.rs:362
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /rust/src/librustc/rustc.rs:366
rust: domain main @0x7f822300c610 root task failed"><pre class="notranslate"><code class="notranslate">rust: task failed at 'option::get none', /rust/src/libstd/option.rs:362
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /rust/src/librustc/rustc.rs:366
rust: domain main @0x7f822300c610 root task failed
</code></pre></div>