Implement pattern guards
The syntax is alt x { mypat where mycond { ... } } The condition may refer to any of the variables bound by the pattern. When a guard fails, pattern-matching continues with the next pattern. Closes #857
Showing
src/test/run-pass/guards.rs
0 → 100644
想要评论请 注册 或 登录