]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui-toml/functions_maxlines/test.stderr
New upstream version 1.58.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui-toml / functions_maxlines / test.stderr
CommitLineData
f20569fa 1error: this function has too many lines (2/1)
3c0e092e 2 --> $DIR/test.rs:18:1
f20569fa
XL
3 |
4LL | / fn too_many_lines() {
5LL | | println!("This is bad.");
6LL | | println!("This is bad.");
7LL | | }
8 | |_^
9 |
10 = note: `-D clippy::too-many-lines` implied by `-D warnings`
11
94222f64 12error: this function has too many lines (4/1)
3c0e092e 13 --> $DIR/test.rs:24:1
94222f64
XL
14 |
15LL | / async fn async_too_many_lines() {
16LL | | println!("This is bad.");
17LL | | println!("This is bad.");
18LL | | }
19 | |_^
20
21error: this function has too many lines (4/1)
3c0e092e 22 --> $DIR/test.rs:30:1
94222f64
XL
23 |
24LL | / fn closure_too_many_lines() {
25LL | | let _ = {
26LL | | println!("This is bad.");
27LL | | println!("This is bad.");
28LL | | };
29LL | | }
30 | |_^
31
f20569fa 32error: this function has too many lines (2/1)
3c0e092e 33 --> $DIR/test.rs:52:1
f20569fa
XL
34 |
35LL | / fn comment_before_code() {
36LL | | let _ = "test";
37LL | | /* This comment extends to the front of
38LL | | the code but this line should still count. */ let _ = 5;
39LL | | }
40 | |_^
41
94222f64 42error: aborting due to 4 previous errors
f20569fa 43