2017-02-17 03:53:14 +00:00
|
|
|
error: this loop never actually loops
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/never_loop.rs:8:5
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
8 | / loop {
|
2017-02-17 03:53:14 +00:00
|
|
|
9 | | println!("This is only ever printed once");
|
|
|
|
10 | | break;
|
|
|
|
11 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_____^
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
|
|
error: this loop never actually loops
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/never_loop.rs:21:5
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
21 | / loop {
|
2017-02-17 03:53:14 +00:00
|
|
|
22 | | loop {
|
|
|
|
23 | | // another one
|
|
|
|
24 | | break;
|
|
|
|
25 | | }
|
|
|
|
26 | | break;
|
|
|
|
27 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_____^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
|
|
error: this loop never actually loops
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/never_loop.rs:22:9
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
22 | / loop {
|
2017-02-17 03:53:14 +00:00
|
|
|
23 | | // another one
|
|
|
|
24 | | break;
|
|
|
|
25 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_________^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
2017-02-17 03:53:14 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|