diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-16745.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16745.rs b/src/test/ui/issues/issue-16745.rs new file mode 100644 index 000000000..e9137df0f --- /dev/null +++ b/src/test/ui/issues/issue-16745.rs @@ -0,0 +1,11 @@ +// run-pass +fn main() { + const X: u8 = 0; + let out: u8 = match 0u8 { + X => 99, + b'\t' => 1, + 1u8 => 2, + _ => 3, + }; + assert_eq!(out, 99); +} |