mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 18:15:01 +00:00
14 lines
241 B
Rust
14 lines
241 B
Rust
#![allow(clippy::explicit_counter_loop)]
|
|
|
|
fn main() {
|
|
let v = vec![1, 2, 3];
|
|
let mut i = 0;
|
|
let max_storage_size = [0; 128 * 1024];
|
|
for item in &v {
|
|
bar(i, *item);
|
|
i += 1;
|
|
}
|
|
}
|
|
|
|
fn bar(_: usize, _: u32) {}
|