We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn main() { match &mut Some(1) { ref mut z @ &Some(ref a) => { **z = None; println!("{}", *a); } _ => () } }
This code compiles even though it should be rejected since writing to z invalidates the a variable.