From 34407dcdbb489a38b15fac0167a88cb94c3d12ac Mon Sep 17 00:00:00 2001 From: Jakub Wieczorek Date: Sat, 7 Jun 2014 14:17:01 +0200 Subject: Provide a witness pattern for non-exhaustive patterns Fixed #4321 --- src/test/compile-fail/refutable-pattern-errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/compile-fail/refutable-pattern-errors.rs') 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))) { } -//~^ 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 } -- cgit 1.4.1-3-g733a5