diff options
| author | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-07 14:17:01 +0200 |
|---|---|---|
| committer | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-20 17:08:57 +0200 |
| commit | 34407dcdbb489a38b15fac0167a88cb94c3d12ac (patch) | |
| tree | 28b710dc420e2f8e4d56d14fc780c7f493876a7f /src/test/compile-fail/refutable-pattern-errors.rs | |
| parent | f5e513b2b2dd173f16b84f0531fc3628d62beb4d (diff) | |
| download | rust-34407dcdbb489a38b15fac0167a88cb94c3d12ac.tar.gz rust-34407dcdbb489a38b15fac0167a88cb94c3d12ac.zip | |
Provide a witness pattern for non-exhaustive patterns
Fixed #4321
Diffstat (limited to 'src/test/compile-fail/refutable-pattern-errors.rs')
| -rw-r--r-- | src/test/compile-fail/refutable-pattern-errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/refutable-pattern-errors.rs b/src/test/compile-fail/refutable-pattern-errors.rs index 38b9b888e06..d664ea10b98 100644 --- a/src/test/compile-fail/refutable-pattern-errors.rs +++ b/src/test/compile-fail/refutable-pattern-errors.rs @@ -10,9 +10,9 @@ fn func((1, (Some(1), 2..3)): (int, (Option<int>, int))) { } -//~^ ERROR refutable pattern in function argument +//~^ ERROR refutable pattern in function argument: (_, _) not covered fn main() { let (1, (Some(1), 2..3)) = (1, (None, 2)); - //~^ ERROR refutable pattern in local binding + //~^ ERROR refutable pattern in local binding: (_, _) not covered } |
