<p dir="auto">Reading rust documentation online can be confusing because it may be out of date with the latest version.<br>
The output of rustdoc should including the date and version number of the crate to help identify if the documentation is relevant.</p>
<p dir="auto">If I try to create a <code class="notranslate">const &amp;'static Fn(u32)</code>, I trigger an ICE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: self.mode == Mode::Var', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/check_const.rs:254

error code 101"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: self.mode == Mode::Var', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/check_const.rs:254

error code 101
</code></pre></div>
<p dir="auto">A small example code snippet is on the playpen (see <a href="http://is.gd/U0DmxV" rel="nofollow">http://is.gd/U0DmxV</a>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const x: &amp;'static Fn() = &amp;|| println!(&quot;ICE here&quot;); //ICE

fn main() {}"><pre class="notranslate"><code class="notranslate">const x: &amp;'static Fn() = &amp;|| println!("ICE here"); //ICE

fn main() {}
</code></pre></div>