]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: this function has too many lines (2/1) |
3c0e092e | 2 | --> $DIR/test.rs:18:1 |
f20569fa XL |
3 | | |
4 | LL | / fn too_many_lines() { | |
5 | LL | | println!("This is bad."); | |
6 | LL | | println!("This is bad."); | |
7 | LL | | } | |
8 | | |_^ | |
9 | | | |
10 | = note: `-D clippy::too-many-lines` implied by `-D warnings` | |
11 | ||
94222f64 | 12 | error: this function has too many lines (4/1) |
3c0e092e | 13 | --> $DIR/test.rs:24:1 |
94222f64 XL |
14 | | |
15 | LL | / async fn async_too_many_lines() { | |
16 | LL | | println!("This is bad."); | |
17 | LL | | println!("This is bad."); | |
18 | LL | | } | |
19 | | |_^ | |
20 | ||
21 | error: this function has too many lines (4/1) | |
3c0e092e | 22 | --> $DIR/test.rs:30:1 |
94222f64 XL |
23 | | |
24 | LL | / fn closure_too_many_lines() { | |
25 | LL | | let _ = { | |
26 | LL | | println!("This is bad."); | |
27 | LL | | println!("This is bad."); | |
28 | LL | | }; | |
29 | LL | | } | |
30 | | |_^ | |
31 | ||
f20569fa | 32 | error: this function has too many lines (2/1) |
3c0e092e | 33 | --> $DIR/test.rs:52:1 |
f20569fa XL |
34 | | |
35 | LL | / fn comment_before_code() { | |
36 | LL | | let _ = "test"; | |
37 | LL | | /* This comment extends to the front of | |
38 | LL | | the code but this line should still count. */ let _ = 5; | |
39 | LL | | } | |
40 | | |_^ | |
41 | ||
94222f64 | 42 | error: aborting due to 4 previous errors |
f20569fa | 43 |