mirror of https://github.com/Wilfred/difftastic/
Add support for `%` operator in case guards (#96)
parent
426e67087f
commit
16e775f33c
@ -0,0 +1,11 @@
|
||||
pub fn case_with_remainder() {
|
||||
case todo {
|
||||
_ if 1 % 2 == 0 -> todo
|
||||
// ^ number
|
||||
// ^ operator
|
||||
// ^ number
|
||||
// ^ operator
|
||||
// ^ number
|
||||
_ -> todo
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue