mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 11:57:25 +00:00
24 lines
590 B
Text
24 lines
590 B
Text
|
error: This function has a large number of lines.
|
||
|
--> $DIR/test.rs:19:1
|
||
|
|
|
||
|
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`
|
||
|
|
||
|
error: This function has a large number of lines.
|
||
|
--> $DIR/test.rs:37:1
|
||
|
|
|
||
|
LL | / fn comment_before_code() {
|
||
|
LL | | let _ = "test";
|
||
|
LL | | /* This comment extends to the front of
|
||
|
LL | | teh code but this line should still count. */ let _ = 5;
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|