]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/never_loop.stderr
Merge pull request #1766 from Manishearth/testing_refactor
[rust.git] / clippy_tests / examples / never_loop.stderr
1 error: this loop never actually loops
2   --> never_loop.rs:8:5
3    |
4 8  | /     loop {
5 9  | |         println!("This is only ever printed once");
6 10 | |         break;
7 11 | |     }
8    | |_____^
9    |
10    = note: `-D never-loop` implied by `-D warnings`
11
12 error: this loop never actually loops
13   --> never_loop.rs:21:5
14    |
15 21 | /     loop {
16 22 | |         loop {
17 23 | |             // another one
18 24 | |             break;
19 25 | |         }
20 26 | |         break;
21 27 | |     }
22    | |_____^
23    |
24    = note: `-D never-loop` implied by `-D warnings`
25
26 error: this loop never actually loops
27   --> never_loop.rs:22:9
28    |
29 22 | /         loop {
30 23 | |             // another one
31 24 | |             break;
32 25 | |         }
33    | |_________^
34    |
35    = note: `-D never-loop` implied by `-D warnings`
36
37 error: aborting due to 3 previous errors
38
39 error: Could not compile `clippy_tests`.
40
41 To learn more, run the command again with --verbose.