]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/empty_loop.stderr
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / empty_loop.stderr
1 error: empty `loop {}` wastes CPU cycles
2   --> $DIR/empty_loop.rs:9:5
3    |
4 LL |     loop {}
5    |     ^^^^^^^
6    |
7    = note: `-D clippy::empty-loop` implied by `-D warnings`
8    = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
9
10 error: empty `loop {}` wastes CPU cycles
11   --> $DIR/empty_loop.rs:11:9
12    |
13 LL |         loop {}
14    |         ^^^^^^^
15    |
16    = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
17
18 error: empty `loop {}` wastes CPU cycles
19   --> $DIR/empty_loop.rs:15:9
20    |
21 LL |         'inner: loop {}
22    |         ^^^^^^^^^^^^^^^
23    |
24    = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
25
26 error: aborting due to 3 previous errors
27