Contact: aviboots(AT)netvision.net.il
39,941 questions
51,879 answers
573 users
fn main() { let x = 7u32; let y = { 2 * x }; println!("x = {:?}", x); println!("y = {:?}", y); } /* run: x = 7 y = 14 */
fn main() { let x = 7u32; let y = { let x_squared = x * x; let x_cube = x_squared * x; x_cube + x_squared }; println!("x = {:?}", x); println!("y = {:?}", y); } /* run: x = 7 y = 392 */