diff options
| author | Jonas Hietala <tradet.h@gmail.com> | 2014-08-23 12:41:32 +0200 |
|---|---|---|
| committer | Jonas Hietala <tradet.h@gmail.com> | 2014-08-24 09:53:01 +0200 |
| commit | 9968ae255495704cb0c3fc1f43d2df2e84c20d5e (patch) | |
| tree | 9812a6ca9aa9325047cba5294fdc1dc5b5ff1e97 /src/test/compile-fail/pattern-error-continue.rs | |
| parent | 2e5aea65cd2594f19b9043d8df0e6461504cda9b (diff) | |
Adjust the error messages to match the pattern "expected foo, found bar"
Closes #8492
Diffstat (limited to 'src/test/compile-fail/pattern-error-continue.rs')
| -rw-r--r-- | src/test/compile-fail/pattern-error-continue.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/pattern-error-continue.rs b/src/test/compile-fail/pattern-error-continue.rs index 47d0a226a56..01feda34e08 100644 --- a/src/test/compile-fail/pattern-error-continue.rs +++ b/src/test/compile-fail/pattern-error-continue.rs @@ -29,9 +29,9 @@ fn main() { _ => () } match 'c' { - S { .. } => (), //~ ERROR mismatched types: expected `char` but found a structure pattern + S { .. } => (), //~ ERROR mismatched types: expected `char`, found a structure pattern _ => () } - f(true); //~ ERROR mismatched types: expected `char` but found `bool` + f(true); //~ ERROR mismatched types: expected `char`, found `bool` } |
