<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~$ rustc | sh -c 'exec &amp;0&gt;-'
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task '&lt;main&gt;' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /build/rust-git/src/rust/src/libstd/io/stdio.rs:215"><pre class="notranslate"><code class="notranslate">~$ rustc | sh -c 'exec &amp;0&gt;-'
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task '&lt;main&gt;' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /build/rust-git/src/rust/src/libstd/io/stdio.rs:215
</code></pre></div>
<p dir="auto">Attempting to run <code class="notranslate">rustc --version</code> with a closed stdout will ICE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; rustc --version | false
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task '&lt;main&gt;' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /Users/kevin/Dev/rust/rust/src/libstd/io/stdio.rs:245"><pre class="notranslate"><code class="notranslate">&gt; rustc --version | false
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task '&lt;main&gt;' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /Users/kevin/Dev/rust/rust/src/libstd/io/stdio.rs:245
</code></pre></div>