2020-09-10 10:47:07 -05:00
|
|
|
error: this function has too many lines (2/1)
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/functions_maxlines/test.rs:19: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`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::too_many_lines)]`
|
2019-01-13 15:26:20 -06:00
|
|
|
|
2021-08-12 04:16:25 -05:00
|
|
|
error: this function has too many lines (4/1)
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/functions_maxlines/test.rs:25:1
|
2021-08-12 04:16:25 -05:00
|
|
|
|
|
|
|
|
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)
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/functions_maxlines/test.rs:31:1
|
2021-08-12 04:16:25 -05:00
|
|
|
|
|
|
|
|
LL | / fn closure_too_many_lines() {
|
|
|
|
LL | | let _ = {
|
|
|
|
LL | | println!("This is bad.");
|
|
|
|
LL | | println!("This is bad.");
|
|
|
|
LL | | };
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2020-09-10 10:47:07 -05:00
|
|
|
error: this function has too many lines (2/1)
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/functions_maxlines/test.rs:53: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 | | }
|
|
|
|
| |_^
|
|
|
|
|
2021-08-12 04:16:25 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2019-01-13 15:26:20 -06:00
|
|
|
|