title: Expected vector but found struct collections::vec::Vec
body: <p>I just started learning Rust and I stumbled upon this stupid problem:</p>
  
  <pre><code>error: mismatched types: expected `&amp;[u8]` but found `&amp;collections::vec::Vec&lt;u8&gt;` (expected vector but found struct collections::vec::Vec)
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre class="lang-rust prettyprint-override"><code>let compressed_contents = match File::open(&amp;Path::new(path)).read_to_end() {
      Ok(f) =&gt; f,
      Err(e) =&gt; fail!("File error: {}", e),
  };
  let contents = inflate_bytes(&amp;compressed_contents);
  </code></pre>
  
  <p>It's expecting a vector and I'm giving it a vector. Obviously there gotta be some other type of vector it wants?</p>