rustc: Support irrefutable patterns in function arguments. r=nmatsakis
This commit is contained in:
parent
b223c9c465
commit
0fc952372a
31 changed files with 392 additions and 159 deletions
5
src/test/compile-fail/refutable-pattern-in-fn-arg.rs
Normal file
5
src/test/compile-fail/refutable-pattern-in-fn-arg.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
fn main() {
|
||||
let f = |3: int| io::println("hello"); //~ ERROR refutable pattern
|
||||
f(4);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue