mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
error: this function has too many lines (2/1)
|
|
--> tests/ui-toml/functions_maxlines/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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::too_many_lines)]`
|
|
|
|
error: this function has too many lines (4/1)
|
|
--> tests/ui-toml/functions_maxlines/test.rs:25:1
|
|
|
|
|
LL | / async fn async_too_many_lines() {
|
|
LL | | println!("This is bad.");
|
|
LL | | println!("This is bad.");
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: this function has too many lines (4/1)
|
|
--> tests/ui-toml/functions_maxlines/test.rs:31:1
|
|
|
|
|
LL | / fn closure_too_many_lines() {
|
|
LL | | let _ = {
|
|
LL | | println!("This is bad.");
|
|
LL | | println!("This is bad.");
|
|
LL | | };
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: this function has too many lines (2/1)
|
|
--> tests/ui-toml/functions_maxlines/test.rs:53:1
|
|
|
|
|
LL | / fn comment_before_code() {
|
|
LL | | let _ = "test";
|
|
LL | | /* This comment extends to the front of
|
|
LL | | the code but this line should still count. */ let _ = 5;
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|