diff options
| author | Ada Alakbarova <ada.alakbarova@proton.me> | 2025-08-12 00:27:16 +0200 |
|---|---|---|
| committer | Ada Alakbarova <ada.alakbarova@proton.me> | 2025-08-12 01:13:26 +0200 |
| commit | abfc498f98046e5e5e1ee00473641982ab66eae1 (patch) | |
| tree | 4c6cf50d6a311a57a881dda0374e65f911c82538 | |
| parent | 9ea90b3bda4842f712d266d2a82fb2e40f47c714 (diff) | |
| download | rust-abfc498f98046e5e5e1ee00473641982ab66eae1.tar.gz rust-abfc498f98046e5e5e1ee00473641982ab66eae1.zip | |
give the test functions more complex signatures
| -rw-r--r-- | tests/ui/functions_maxlines.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ui/functions_maxlines.rs b/tests/ui/functions_maxlines.rs index e5ed909ec23..b0714552461 100644 --- a/tests/ui/functions_maxlines.rs +++ b/tests/ui/functions_maxlines.rs @@ -1,3 +1,4 @@ +#![allow(clippy::unused_unit, clippy::missing_safety_doc)] #![warn(clippy::too_many_lines)] fn good_lines() { @@ -55,7 +56,8 @@ fn good_lines() { println!("This is good."); } -fn bad_lines() { +#[allow(unused)] // the attr shouldn't get included in the highlight +pub async unsafe extern "Rust" fn bad_lines() -> () { //~^ too_many_lines println!("Dont get confused by braces: {{}}"); @@ -164,7 +166,8 @@ fn bad_lines() { struct Foo; impl Foo { - fn bad_lines() { + #[allow(unused)] // the attr shouldn't get included in the highlight + pub async unsafe extern "Rust" fn bad_lines() -> () { //~^ too_many_lines println!("Dont get confused by braces: {{}}"); |
