auto merge of #6669 : yjh0502/rust/fix_6209, r=graydon

Fix issue #6209, and some related issues about constant expression
 - unmatched type between arms
 - unmatched type in range
This commit is contained in:
bors 2013-05-22 18:01:36 -07:00
commit 1d3e84c5d6
7 changed files with 183 additions and 81 deletions

View file

@ -0,0 +1,6 @@
fn main() {
match 1 {
1..2u => 1, //~ ERROR mismatched types in range
_ => 2,
};
}

View file

@ -0,0 +1,7 @@
fn main() {
match 1 {
1 => 1, //~ ERROR mismatched types between arms
2u => 1,
_ => 2,
};
}