fn main() {
first();
second();
}
fn first() {
let mut x = 10;
}
fn second() {
println!("X is {}", x);
}
I want to make first declare the variable inside of that function as mutable. Then the second function should be able to somehow refrence to that variable and mutate it as a global change.