test: Add an assertion to the #16745 testcase
This commit is contained in:
parent
57fdeecd91
commit
4cf9e2db5e
1 changed files with 7 additions and 6 deletions
|
@ -10,10 +10,11 @@
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
const X: u8 = 0;
|
const X: u8 = 0;
|
||||||
match 0u8 {
|
let out: u8 = match 0u8 {
|
||||||
X => { },
|
X => 99,
|
||||||
b'\t' => { },
|
b'\t' => 1,
|
||||||
1u8 => { },
|
1u8 => 2,
|
||||||
_ => { },
|
_ => 3,
|
||||||
}
|
};
|
||||||
|
assert_eq!(out, 99);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue