]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-360.stderr
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-360.stderr
1 error: this loop could be written as a `while let` loop
2   --> $DIR/ice-360.rs:5:5
3    |
4 LL | /     loop {
5 LL | |         let _ = match iter.next() {
6 LL | |             Some(ele) => ele,
7 LL | |             None => break,
8 LL | |         };
9 LL | |         loop {}
10 LL | |     }
11    | |_____^ help: try: `while let Some(ele) = iter.next() { .. }`
12    |
13    = note: `-D clippy::while-let-loop` implied by `-D warnings`
14
15 error: empty `loop {}` detected. You may want to either use `panic!()` or add `std::thread::sleep(..);` to the loop body.
16   --> $DIR/ice-360.rs:10:9
17    |
18 LL |         loop {}
19    |         ^^^^^^^
20    |
21    = note: `-D clippy::empty-loop` implied by `-D warnings`
22
23 error: aborting due to 2 previous errors
24