Exercise 29

This commit is contained in:
akshitgautam42 2023-11-12 16:06:24 +05:30
parent 1b5b56b55b
commit 3795936edd

View File

@ -12,8 +12,10 @@
fn main() {
let mut x = 100;
let y = &mut x;
let z = &mut x;
*y += 100;
let z = &mut x;
*z += 1000;
assert_eq!(x, 1200);
}