test: Add an assertion to the #16745 testcase

This commit is contained in:
Richo Healey 2015-04-19 00:25:13 -07:00
parent 57fdeecd91
commit 4cf9e2db5e

View file

@ -10,10 +10,11 @@
fn main() {
const X: u8 = 0;
match 0u8 {
X => { },
b'\t' => { },
1u8 => { },
_ => { },
}
let out: u8 = match 0u8 {
X => 99,
b'\t' => 1,
1u8 => 2,
_ => 3,
};
assert_eq!(out, 99);
}