fn main() { let arr = [1, 2, 3] for x in arr { if x == 2 { break } else { println(x) } } }