// An integer match needs `_`; arms may diverge; variables are carried across the arms. // expect: run // result: 111 // phase: 6 // spec: docs/spec/15-source-language.md module demo.digits fn main() -> u64 effects [] { var total: u64 = 0; for d in 0..4u8 { match d { 0 => { total = total + 1; } 1 => { total = total + 10; } 2 => { total = total + 100; } _ => { continue; } } } return total; }