Improved match statements

This commit is contained in:
2026-06-23 19:03:47 +02:00
parent 97de75252d
commit dc8acdc2bd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -109,8 +109,8 @@ pub void test_match_literal() {
match x {
1 => { result = 10; }
2 => { result = 20; }
3 => { result = 30; }
2 => result = 20;
3 => result = 30,
_ => panic!();
}
assert_eq!(result, 20);