2 // Regression test for #23698: The reassignment checker only cared
3 // about the last assignment in a match arm body
5 // Use an extra function to make sure no extra assignments
6 // are introduced by macros in the match statement
7 fn check_eq(x: i32, y: i32) {
11 #[allow(unused_assignments)]
13 let mut x = Box::new(1);
17 let _tmp = 1; // This assignment used to throw off the reassignment checker