6 // Make sure we don't reuse the same alloca when matching
7 // on field of struct or tuple which we reassign in the match body.
10 let mut a = (0, Some("right".to_string()));
13 a.1 = Some("wrong".to_string());
19 assert_eq!(b, "right");
22 let mut s = S{ o: Some("right".to_string()) };
25 s.o = Some("wrong".to_string());
28 None => String::new(),
31 assert_eq!(b, "right");