mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Fix error messages harder
This commit is contained in:
@@ -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
|
||||
_ => { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user