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