1 2 3 4 5 6
fn main(){ let a=2; let b=5; let sq=|x,y| {(x+y)*(x+y)}; println!("Square of ({}+{}) is {}",a,b,sq(a,b)); }