title: How do I compare a vector against a reversed version of itself?
body: <p>Why won't this compile?</p>
  
  <pre><code>fn isPalindrome&lt;T&gt;(v: Vec&lt;T&gt;) -&gt; bool {
    return v.reverse() == v;
  }
  </code></pre>
  
  <p>I get</p>
  
  <pre class="lang-none prettyprint-override"><code>error[E0308]: mismatched types
   --&gt; src/main.rs:2:25
    |
  2 |   return v.reverse() == v;
    |                         ^ expected (), found struct `std::vec::Vec`
    |
    = note: expected type `()`
               found type `std::vec::Vec&lt;T&gt;`
  </code></pre>