summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Rostecki <vadorovsky@gmail.com>2022-05-04 14:11:30 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2022-05-08 00:52:54 +0200
commit4b085b45f83f4722b13820d031dd8269812fe48c (patch)
treeb381f3643c04e14ed7f05842cf59c0943a65c886 /tests
parentee6ff69229ee20914fe262d32624f0b01e441e20 (diff)
Derive from any other trait only when deriving from Copy
It's impossible to #[derive] from any other trait when not deriving from Copy when using the newest Rust nightly. Any attempt to do that results in the following error: error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133) Fixes: #2083 Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/expectations/tests/packed-vtable.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/expectations/tests/packed-vtable.rs b/tests/expectations/tests/packed-vtable.rs
index 0069eada..71688151 100644
--- a/tests/expectations/tests/packed-vtable.rs
+++ b/tests/expectations/tests/packed-vtable.rs
@@ -9,7 +9,6 @@
#[repr(C)]
pub struct PackedVtable__bindgen_vtable(::std::os::raw::c_void);
#[repr(C, packed)]
-#[derive(Debug)]
pub struct PackedVtable {
pub vtable_: *const PackedVtable__bindgen_vtable,
}