1
Fork 0

Provide a witness pattern for non-exhaustive patterns

Fixed #4321
This commit is contained in:
Jakub Wieczorek 2014-06-07 14:17:01 +02:00
parent f5e513b2b2
commit 34407dcdbb
7 changed files with 502 additions and 552 deletions

View file

@ -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);
}