2019-09-20 01:25:05 -05:00
|
|
|
// Tests from for_loop.rs that don't have suggestions
|
|
|
|
|
|
|
|
#[warn(
|
|
|
|
clippy::needless_range_loop,
|
|
|
|
clippy::explicit_iter_loop,
|
|
|
|
clippy::explicit_into_iter_loop,
|
|
|
|
clippy::iter_next_loop,
|
|
|
|
clippy::for_kv_map
|
|
|
|
)]
|
2021-10-07 04:21:30 -05:00
|
|
|
#[allow(clippy::linkedlist, clippy::unnecessary_mut_passed, clippy::similar_names)]
|
2022-10-07 10:59:39 -05:00
|
|
|
#[allow(for_loops_over_fallibles)]
|
2019-09-20 01:25:05 -05:00
|
|
|
fn main() {
|
|
|
|
let vec = vec![1, 2, 3, 4];
|
|
|
|
|
|
|
|
for _v in vec.iter().next() {}
|
|
|
|
}
|