title: How to make a Rust mutable reference immutable?
body: <p>I'm trying to convert a mutable vector to an immutable vector in Rust. I thought this would work but it doesn't:</p>
  
  <pre><code>let data = &amp;mut vec![];
  let x = data;          // I thought x would now be an immutable reference
  </code></pre>
  
  <p>How can I turn a mutable reference into an immutable binding?</p>