diff --git a/tests/pinned_drop.rs b/tests/pinned_drop.rs index 80451fe7..9765db98 100644 --- a/tests/pinned_drop.rs +++ b/tests/pinned_drop.rs @@ -137,6 +137,8 @@ fn self_inside_macro_containing_fn() { impl PinnedDrop for S { fn drop(self: Pin<&mut Self>) { mac!({ + #[allow(dead_code)] + struct S(()); impl S { fn _f(self) -> Self { self