]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/empty_loop.stderr
Rollup merge of #102764 - compiler-errors:issue-102762, r=jackh726
[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    = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
8    = note: `-D clippy::empty-loop` implied by `-D warnings`
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