1
Fork 0

rustc: Support irrefutable patterns in function arguments. r=nmatsakis

This commit is contained in:
Patrick Walton 2012-11-06 18:41:06 -08:00
parent b223c9c465
commit 0fc952372a
31 changed files with 392 additions and 159 deletions

View file

@ -0,0 +1,5 @@
fn main() {
let f = |3: int| io::println("hello"); //~ ERROR refutable pattern
f(4);
}