mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
13 lines
405 B
Plaintext
13 lines
405 B
Plaintext
error: empty `loop {}` wastes CPU cycles
|
|
--> tests/ui/empty_loop_no_std.rs:8:5
|
|
|
|
|
LL | loop {}
|
|
| ^^^^^^^
|
|
|
|
|
= help: you should either use `panic!()` or add a call pausing or sleeping the thread 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 1 previous error
|
|
|