summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-360.stderr
blob: a84697a9f291db338dd7f0b338ac8b980bba84cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
error: this loop never actually loops
  --> $DIR/ice-360.rs:5:5
   |
LL | /     loop {
LL | |
LL | |
LL | |
...  |
LL | |
LL | |     }
   | |_____^
   |
   = note: `#[deny(clippy::never_loop)]` on by default

error: this loop could be written as a `while let` loop
  --> $DIR/ice-360.rs:5:5
   |
LL | /     loop {
LL | |
LL | |
LL | |
...  |
LL | |
LL | |     }
   | |_____^ help: try: `while let Some(ele) = iter.next() { .. }`
   |
   = note: `-D clippy::while-let-loop` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::while_let_loop)]`

error: empty `loop {}` wastes CPU cycles
  --> $DIR/ice-360.rs:13:9
   |
LL |         loop {}
   |         ^^^^^^^
   |
   = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
   = note: `-D clippy::empty-loop` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::empty_loop)]`

error: aborting due to 3 previous errors