Fix error messages harder
This commit is contained in:
parent
849f8142a2
commit
4493cf49cd
@ -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…
x
Reference in New Issue
Block a user