2023-05-20 13:39:26 +00:00
|
|
|
error: manual backwards iteration
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/manual_next_back.rs:32:20
|
2023-05-20 13:39:26 +00:00
|
|
|
|
|
|
|
|
LL | let _ = (0..10).rev().next().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^ help: use: `.next_back()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-next-back` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_next_back)]`
|
2023-05-20 13:39:26 +00:00
|
|
|
|
|
|
|
error: manual backwards iteration
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/manual_next_back.rs:33:32
|
2023-05-20 13:39:26 +00:00
|
|
|
|
|
|
|
|
LL | let _ = "something".bytes().rev().next();
|
|
|
|
| ^^^^^^^^^^^^^ help: use: `.next_back()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|