Fix error messages harder

This commit is contained in:
Tim Chevalier 2013-04-30 16:17:19 -07:00
parent 849f8142a2
commit 4493cf49cd
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
fn main() {
match () {
[()] => { } //~ ERROR mismatched type: expected `()` but found a vector pattern
[()] => { } //~ ERROR mismatched types: expected `()` but found a vector pattern
}
}

View File

@ -1,6 +1,6 @@
fn main() {
match ~"foo" {
['f', 'o', .._] => { } //~ ERROR mismatched type: expected `~str` but found a vector pattern
['f', 'o', .._] => { } //~ ERROR mismatched types: expected `~str` but found a vector pattern
_ => { }
}
}