]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/empty_loop_no_std.stderr
Auto merge of #100315 - compiler-errors:norm-ct-in-proj, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / empty_loop_no_std.stderr
1 error: empty `loop {}` wastes CPU cycles
2   --> $DIR/empty_loop_no_std.rs:14: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 a call pausing or sleeping the thread to the loop body
9
10 error: empty `loop {}` wastes CPU cycles
11   --> $DIR/empty_loop_no_std.rs:26:5
12    |
13 LL |     loop {}
14    |     ^^^^^^^
15    |
16    = help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
17
18 error: aborting due to 2 previous errors
19