blob: 94ccaa9e4cc3fcbcb3e7728c3a208024251b8f16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error: manual backwards iteration
--> $DIR/manual_next_back.rs:34:20
|
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
--> $DIR/manual_next_back.rs:35:32
|
LL | let _ = "something".bytes().rev().next();
| ^^^^^^^^^^^^^ help: use: `.next_back()`
error: aborting due to 2 previous errors
|