fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this function has too many lines (2/1) 2 --> $DIR/test.rs:19:1 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 = help: to override `-D warnings` add `#[allow(clippy::too_many_lines)]` 12 13error: this function has too many lines (4/1) 14 --> $DIR/test.rs:25:1 15 | 16LL | / async fn async_too_many_lines() { 17LL | | println!("This is bad."); 18LL | | println!("This is bad."); 19LL | | } 20 | |_^ 21 22error: this function has too many lines (4/1) 23 --> $DIR/test.rs:31:1 24 | 25LL | / fn closure_too_many_lines() { 26LL | | let _ = { 27LL | | println!("This is bad."); 28LL | | println!("This is bad."); 29LL | | }; 30LL | | } 31 | |_^ 32 33error: this function has too many lines (2/1) 34 --> $DIR/test.rs:53:1 35 | 36LL | / fn comment_before_code() { 37LL | | let _ = "test"; 38LL | | /* This comment extends to the front of 39LL | | the code but this line should still count. */ let _ = 5; 40LL | | } 41 | |_^ 42 43error: aborting due to 4 previous errors 44