]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/functions_maxlines/test.stderr
Auto merge of #7534 - LeSeulArtichaut:7517-closure-too-many-lines, r=flip1995
[rust.git] / tests / ui-toml / functions_maxlines / test.stderr
1 error: this function has too many lines (2/1)
2   --> $DIR/test.rs:20:1
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
12 error: this function has too many lines (4/1)
13   --> $DIR/test.rs:26:1
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)
22   --> $DIR/test.rs:32:1
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
32 error: this function has too many lines (2/1)
33   --> $DIR/test.rs:54:1
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
42 error: aborting due to 4 previous errors
43