Files
rust/tests/ui/range.stderr

12 lines
403 B
Plaintext
Raw Normal View History

2025-02-02 23:44:22 +09:00
error: using `.zip()` with a range and `.len()`
2024-02-17 12:16:29 +00:00
--> tests/ui/range.rs:6:14
|
2018-12-27 16:57:55 +01:00
LL | let _x = v1.iter().zip(0..v1.len());
2025-02-02 23:44:22 +09:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `v1.iter().enumerate()`
|
= note: `-D clippy::range-zip-with-len` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::range_zip_with_len)]`
error: aborting due to 1 previous error
2018-01-16 17:06:27 +01:00