test: Add an assertion to the #16745 testcase
This commit is contained in:
parent
57fdeecd91
commit
4cf9e2db5e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user