Rust is a compiled language without garbage collection, so it is almost as fast as C.

Here is the code to print the array:

```rust
fn main() {
    let arr = [1, 2];
    for element in arr.iter() {
        println!("{}", element);
    }
}
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence