diff options
| author | Ben Schulz <benshu@benshu.de> | 2025-07-09 18:46:11 +0200 |
|---|---|---|
| committer | Ben Schulz <benshu@benshu.de> | 2025-07-24 20:44:09 +0200 |
| commit | e958b20af7ad3e3a053070a9c45389fe463ccc0c (patch) | |
| tree | 64985cdf8eedbe2f0493373cc5112ebd3527901e /tests | |
| parent | 5d22242a3a84a55be2f648a94eecff58887547f4 (diff) | |
| download | rust-e958b20af7ad3e3a053070a9c45389fe463ccc0c.tar.gz rust-e958b20af7ad3e3a053070a9c45389fe463ccc0c.zip | |
Fix unused_parens false positive
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/lint/unused/unused-parens-false-positive-issue-143653.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lint/unused/unused-parens-false-positive-issue-143653.rs b/tests/ui/lint/unused/unused-parens-false-positive-issue-143653.rs new file mode 100644 index 00000000000..78f335c26a7 --- /dev/null +++ b/tests/ui/lint/unused/unused-parens-false-positive-issue-143653.rs @@ -0,0 +1,9 @@ +//@ check-pass + +#![deny(unused_parens)] +#![allow(warnings)] +trait MyTrait {} + +fn foo(_: Box<dyn FnMut(&mut u32) -> &mut (dyn MyTrait) + Send + Sync>) {} + +fn main() {} |
