title: Is it possible to match against the result of a `const fn`?
body: <p>I've tried the naive approach</p>
  
  <pre><code>fn main() -&gt; Result&lt;(), Box&lt;std::error::Error&gt;&gt; {
      let num = 0;
      match num {
          u64::max_value() =&gt; println!("Is u64::max_value()"),
          _ =&gt; println!("Is boring")
      }
      Ok(())
  }
  </code></pre>
  
  <p>but it fails with <code>expected tuple struct/variant, found method &lt;u64&gt;::max_value</code>.</p>
  
  <p>Is there another syntax except <code>n if n == u64::max_value() =&gt; ...</code> which can I use?</p>