rust/tests/ui/issues/issue-16745.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
180 B
Rust
Raw Normal View History

// run-pass
2015-04-18 19:41:18 -05:00
fn main() {
const X: u8 = 0;
let out: u8 = match 0u8 {
X => 99,
b'\t' => 1,
1u8 => 2,
_ => 3,
};
assert_eq!(out, 99);
2015-04-18 19:41:18 -05:00
}