struct S { v: i32 } fn main() { let mut n = S{v: 1}; let f = move |x| { x + n.v }; n.v = 5; println!("Add {} = {}", n.v, f(n.v)) }