diff options
Diffstat (limited to 'src/test/compile-fail/refutable-pattern-in-fn-arg.rs')
| -rw-r--r-- | src/test/compile-fail/refutable-pattern-in-fn-arg.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/refutable-pattern-in-fn-arg.rs b/src/test/compile-fail/refutable-pattern-in-fn-arg.rs index d5489b6a852..064957979f7 100644 --- a/src/test/compile-fail/refutable-pattern-in-fn-arg.rs +++ b/src/test/compile-fail/refutable-pattern-in-fn-arg.rs @@ -9,6 +9,7 @@ // except according to those terms. fn main() { - let f = |3: int| println!("hello"); //~ ERROR refutable pattern + let f = |3: int| println!("hello"); + //~^ ERROR refutable pattern in function argument: _ not covered f(4); } |
