2017-02-16 21:53:14 -06:00
|
|
|
error: this loop never actually loops
|
2017-05-31 23:22:15 -05:00
|
|
|
--> never_loop.rs:7:5
|
2017-02-16 21:53:14 -06:00
|
|
|
|
|
2017-05-31 23:22:15 -05:00
|
|
|
7 | / loop { // never_loop
|
|
|
|
8 | | x += 1;
|
|
|
|
9 | | if x == 1 {
|
|
|
|
10 | | return
|
|
|
|
11 | | }
|
|
|
|
12 | | break;
|
|
|
|
13 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_____^
|
2017-02-16 21:53:14 -06:00
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
2017-02-16 21:53:14 -06:00
|
|
|
|
|
|
|
error: this loop never actually loops
|
2017-05-31 23:22:15 -05:00
|
|
|
--> never_loop.rs:28:5
|
2017-02-16 21:53:14 -06:00
|
|
|
|
|
2017-05-31 23:22:15 -05:00
|
|
|
28 | / loop { // never loops
|
|
|
|
29 | | x += 1;
|
|
|
|
30 | | break
|
|
|
|
31 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_____^
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
2017-02-16 21:53:14 -06:00
|
|
|
|
2017-05-31 23:22:15 -05:00
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:47:2
|
|
|
|
|
|
|
|
|
47 | / loop { // never loops
|
|
|
|
48 | | while i == 0 { // never loops
|
|
|
|
49 | | break
|
|
|
|
50 | | }
|
|
|
|
51 | | return
|
|
|
|
52 | | }
|
|
|
|
| |__^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:48:9
|
|
|
|
|
|
|
|
|
48 | / while i == 0 { // never loops
|
|
|
|
49 | | break
|
|
|
|
50 | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:57:5
|
|
|
|
|
|
|
|
|
57 | / 'outer: loop { // never loops
|
|
|
|
58 | | x += 1;
|
|
|
|
59 | | loop { // never loops
|
|
|
|
60 | | if x == 5 { break }
|
|
|
|
... |
|
|
|
|
63 | | return
|
|
|
|
64 | | }
|
|
|
|
| |__^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:59:3
|
|
|
|
|
|
|
|
|
59 | / loop { // never loops
|
|
|
|
60 | | if x == 5 { break }
|
|
|
|
61 | | continue 'outer
|
|
|
|
62 | | }
|
|
|
|
| |___^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:92:5
|
|
|
|
|
|
|
|
|
92 | / while let Some(y) = x { // never loops
|
|
|
|
93 | | return
|
|
|
|
94 | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this loop never actually loops
|
|
|
|
--> never_loop.rs:98:5
|
|
|
|
|
|
|
|
|
98 | / for x in 0..10 { // never loops
|
|
|
|
99 | | match x {
|
|
|
|
100 | | 1 => break,
|
|
|
|
101 | | _ => return,
|
|
|
|
102 | | }
|
|
|
|
103 | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= note: `-D never-loop` implied by `-D warnings`
|
|
|
|
|
2017-05-26 02:21:54 -05:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-16 21:53:14 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|