mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
6b6253016f
rustc now (https://github.com/rust-lang/rust/issues/33525) does not report an error count anymore, because it was not correct in many cases.
41 lines
920 B
Text
41 lines
920 B
Text
error: this loop never actually loops
|
|
--> never_loop.rs:8:5
|
|
|
|
|
8 | / loop {
|
|
9 | | println!("This is only ever printed once");
|
|
10 | | break;
|
|
11 | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
error: this loop never actually loops
|
|
--> never_loop.rs:21:5
|
|
|
|
|
21 | / loop {
|
|
22 | | loop {
|
|
23 | | // another one
|
|
24 | | break;
|
|
25 | | }
|
|
26 | | break;
|
|
27 | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
error: this loop never actually loops
|
|
--> never_loop.rs:22:9
|
|
|
|
|
22 | / loop {
|
|
23 | | // another one
|
|
24 | | break;
|
|
25 | | }
|
|
| |_________^
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error(s)
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|