(x: i32)
| 1 | fn main() { |
| 2 | fn if_buzz(x: i32) { |
| 3 | if x % 15 == 0 { |
| 4 | println!("FizzBuzz") |
| 5 | } else if x % 3 == 0 { |
| 6 | println!("Fizz") |
| 7 | } else if x % 5 == 0 { |
| 8 | println!("Buzz") |
| 9 | } else { |
| 10 | println!("{}", x) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | let fizz_buzz = |x| match (x % 3, x % 5) { |
| 15 | (0, 0) => println!("FizzBuzz"), |
nothing calls this directly
no outgoing calls
no test coverage detected