title: Accessing template static function
body: <p>Using rust, I'm trying to access a generic's static function.</p>
  <pre class="lang-rust prettyprint-override"><code>#![allow(unused)]
  
  struct Bar;
  impl Bar{
      fn foo(){}
  }
  
  struct Qux;
  impl Qux{
      fn run&lt;T&gt;() {
          T::foo();
      }
  }
  
  fn main() {
      Qux::run::&lt;Bar&gt;();
  }
  </code></pre>
  <p>This however doesn't work, because:</p>
  <pre class="lang-bash prettyprint-override"><code> T::foo();
     |            ^^^ function or associated item not found in `T`
  </code></pre>
  <p>What is the idiomatic way of doing this?
  I've set up a <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2021&amp;gist=005ad3afa2a726db9c917e542a431127" rel="nofollow noreferrer">playground</a> to simplify debugging.</p>