Skip to content

Commit 4493cf4

Browse files
committed
Fix error messages harder
1 parent 849f814 commit 4493cf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fn main() {
22
match () {
3-
[()] => { } //~ ERROR mismatched type: expected `()` but found a vector pattern
3+
[()] => { } //~ ERROR mismatched types: expected `()` but found a vector pattern
44
}
55
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
22
match ~"foo" {
3-
['f', 'o', .._] => { } //~ ERROR mismatched type: expected `~str` but found a vector pattern
3+
['f', 'o', .._] => { } //~ ERROR mismatched types: expected `~str` but found a vector pattern
44
_ => { }
55
}
66
}

0 commit comments

Comments
 (0)