1 2 3 4 5 6 7 8
fn main() { println!("test"): //~ ERROR statements are terminated with a semicolon 0; } fn foo() { println!("test"): 0; //~ ERROR expected one of }