<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ cat test.rs
enum A { B = A::B as isize }

fn main() {
    println!(&quot;{}&quot;, A::B as isize);
}
$ rustc test.rs

thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
$ rustc --version --verbose
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
binary: rustc
commit-hash: 9854143cba679834bc4ef932858cd5303f015a0e
commit-date: 2015-04-02
build-date: 2015-04-02
host: x86_64-unknown-linux-gnu
release: 1.0.0-beta"><pre class="notranslate">$ <span class="pl-s1">cat test.rs</span>
<span class="pl-c1">enum A { B = A::B as isize }</span>

<span class="pl-c1">fn main() {</span>
<span class="pl-c1">    println!("{}", A::B as isize);</span>
<span class="pl-c1">}</span>
$ <span class="pl-s1">rustc test.rs</span>

<span class="pl-c1">thread 'rustc' has overflowed its stack</span>
<span class="pl-c1">Illegal instruction (core dumped)</span>
$ <span class="pl-s1">rustc --version --verbose</span>
<span class="pl-c1">rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)</span>
<span class="pl-c1">binary: rustc</span>
<span class="pl-c1">commit-hash: 9854143cba679834bc4ef932858cd5303f015a0e</span>
<span class="pl-c1">commit-date: 2015-04-02</span>
<span class="pl-c1">build-date: 2015-04-02</span>
<span class="pl-c1">host: x86_64-unknown-linux-gnu</span>
<span class="pl-c1">release: 1.0.0-beta</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum X { A = X::A as isize }

fn main() {}"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">X</span> <span class="pl-kos">{</span> <span class="pl-v">A</span> = <span class="pl-smi">X</span><span class="pl-kos">::</span><span class="pl-v">A</span> <span class="pl-k">as</span> <span class="pl-smi">isize</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-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)"><pre class="notranslate"><code class="notranslate">thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
</code></pre></div>