Skip to content

Commit 4cf9e2d

Browse files
committed
test: Add an assertion to the #16745 testcase
1 parent 57fdeec commit 4cf9e2d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/test/run-pass/issue-16745.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010

1111
fn main() {
1212
const X: u8 = 0;
13-
match 0u8 {
14-
X => { },
15-
b'\t' => { },
16-
1u8 => { },
17-
_ => { },
18-
}
13+
let out: u8 = match 0u8 {
14+
X => 99,
15+
b'\t' => 1,
16+
1u8 => 2,
17+
_ => 3,
18+
};
19+
assert_eq!(out, 99);
1920
}

0 commit comments

Comments
 (0)