2023-05-04 15:44:35 -05:00
|
|
|
error: manual backwards iteration
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_next_back.rs:32:20
|
2023-05-04 15:44:35 -05:00
|
|
|
|
|
|
|
|
LL | let _ = (0..10).rev().next().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^ help: use: `.next_back()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-next-back` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: manual backwards iteration
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_next_back.rs:33:32
|
2023-05-04 15:44:35 -05:00
|
|
|
|
|
|
|
|
LL | let _ = "something".bytes().rev().next();
|
|
|
|
| ^^^^^^^^^^^^^ help: use: `.next_back()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|