about summary refs log tree commit diff
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2022-06-28 12:38:52 +0200
committerxFrednet <xFrednet@gmail.com>2022-06-28 12:38:52 +0200
commitd11618e6fa73f7f99d5569349bca800cf2b126bb (patch)
tree8232056066f6aad3775d3f7f74262efd894dbf90
parent3a31ef7456eed7c901acdb82f91ac1eeb0a84f46 (diff)
downloadrust-d11618e6fa73f7f99d5569349bca800cf2b126bb.tar.gz
rust-d11618e6fa73f7f99d5569349bca800cf2b126bb.zip
Update `boxed_local` expect attribute location
-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();
 }