1 // This is a regression test for #52967, where we discovered that in
2 // the initial deployment of NLL for the 2018 edition, I forgot to
3 // turn on two-phase-borrows in addition to `-Z borrowck=migrate`.
5 // revisions: edition2015 edition2018
6 //[edition2018]edition:2018
11 let mut stuff = ("left", "right");
13 (ref mut left, _) if *left == "left" => { *left = "new left"; }
16 assert_eq!(stuff, ("new left", "right"));