mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
10 lines
182 B
Rust
10 lines
182 B
Rust
// run-rustfix
|
|
#![allow(unused)]
|
|
#![warn(clippy::unused_enumerate_index)]
|
|
|
|
fn main() {
|
|
let v = [1, 2, 3];
|
|
for (_, x) in v.iter().enumerate() {
|
|
print!("{x}");
|
|
}
|
|
}
|