Fix error messages harder
This commit is contained in:
parent
849f8142a2
commit
4493cf49cd
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
_ => { }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue