もちろん。

ただし、ある程度の出力を取得するには、機能を呼び出す必要があります。
「錆
fn main（）{
    //最初の20のFizzBuzz結果を印刷します
    1..21のIの場合{
        println！（ "i = {}、result = {}"、i、fizzbuzz（i））;
    }
}
`` `

上記は次のようなものを出力します：
「バッシュ
i = 1、result = 1
i = 2、result = 2
i = 3、result = fizz
i = 4、result = 4
i = 5、result = buzz
i = 6、result = fizz
i = 7、result = 7
i = 8、result = 8
i = 9、result = fizz
i = 10、result = buzz
i = 11、result = 11
i = 12、result = fizz
i = 13、result = 13
i = 14、result = 14
i = 15、result = fizzbuzz
i = 16、result = 16
i = 17、result = 17
i = 18、result = fizz
i = 19、結果= 19
i = 20、result =バズ
`` `
Sure.

To get some output, however, you would need to call the function, e.g.
```rust
fn main() {
    // Print the first 20 fizzbuzz results
    for i in 1..21 {
        println!("i={}, result={}", i, fizzbuzz(i));
    }
}
```

The above would output something like this:
```bash
i=1, result=1
i=2, result=2
i=3, result=fizz
i=4, result=4
i=5, result=buzz
i=6, result=fizz
i=7, result=7
i=8, result=8
i=9, result=fizz
i=10, result=buzz
i=11, result=11
i=12, result=fizz
i=13, result=13
i=14, result=14
i=15, result=fizzbuzz
i=16, result=16
i=17, result=17
i=18, result=fizz
i=19, result=19
i=20, result=buzz
```