2020-07-23 08:06:33 -05:00
|
|
|
error: this function has a large number of lines
|
2019-02-01 12:19:55 -06:00
|
|
|
--> $DIR/test.rs:18:1
|
2019-01-13 15:26:20 -06:00
|
|
|
|
|
|
|
|
LL | / fn too_many_lines() {
|
|
|
|
LL | | println!("This is bad.");
|
|
|
|
LL | | println!("This is bad.");
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::too-many-lines` implied by `-D warnings`
|
|
|
|
|
2020-07-23 08:06:33 -05:00
|
|
|
error: this function has a large number of lines
|
2019-02-01 12:19:55 -06:00
|
|
|
--> $DIR/test.rs:38:1
|
2019-01-13 15:26:20 -06:00
|
|
|
|
|
|
|
|
LL | / fn comment_before_code() {
|
|
|
|
LL | | let _ = "test";
|
|
|
|
LL | | /* This comment extends to the front of
|
2019-04-04 04:15:30 -05:00
|
|
|
LL | | the code but this line should still count. */ let _ = 5;
|
2019-01-13 15:26:20 -06:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|