Skip to content

Commit

Permalink
test: Add an assertion to the #16745 testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Apr 19, 2015
1 parent 57fdeec commit 4cf9e2d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/test/run-pass/issue-16745.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 4cf9e2d

Please sign in to comment.