about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/manual_next_back.stderr
blob: 4ac7b0d21244408af4aa7651b76f726e498c7557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: manual backwards iteration
  --> tests/ui/manual_next_back.rs:32:20
   |
LL |     let _ = (0..10).rev().next().unwrap();
   |                    ^^^^^^^^^^^^^ help: use: `.next_back()`
   |
   = note: `-D clippy::manual-next-back` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::manual_next_back)]`

error: manual backwards iteration
  --> tests/ui/manual_next_back.rs:34:32
   |
LL |     let _ = "something".bytes().rev().next();
   |                                ^^^^^^^^^^^^^ help: use: `.next_back()`

error: aborting due to 2 previous errors