about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/boxed_local.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/boxed_local.rs b/tests/ui/boxed_local.rs
index 7c74aa75822..4639f00a8d8 100644
--- a/tests/ui/boxed_local.rs
+++ b/tests/ui/boxed_local.rs
@@ -204,7 +204,6 @@ mod issue4804 {
     }
 }
 
-#[expect(clippy::boxed_local)]
-fn check_expect(x: Box<A>) {
+fn check_expect(#[expect(clippy::boxed_local)] x: Box<A>) {
     x.foo();
 }