summaryrefslogtreecommitdiff
path: root/tests/test_func.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_func.rs')
-rw-r--r--tests/test_func.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/test_func.rs b/tests/test_func.rs
index e0b80d68..434612ef 100644
--- a/tests/test_func.rs
+++ b/tests/test_func.rs
@@ -15,21 +15,12 @@ fn func_ptr() {
fn func_ptr_in_struct() {
assert_bind_eq(Default::default(), "headers/func_ptr_in_struct.h", "
#[repr(C)]
- #[derive(Copy)]
- #[derive(Debug)]
+ #[derive(Copy, Clone)]
pub struct Struct_Foo {
pub bar: ::std::option::Option<
- extern \"C\" fn(x: ::std::os::raw::c_int,
+ unsafe extern \"C\" fn(x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int) -> Enum_baz>,
}
-
- impl ::std::clone::Clone for Struct_Foo {
- fn clone(&self) -> Self { *self }
- }
-
- impl ::std::default::Default for Struct_Foo {
- fn default() -> Self { unsafe { ::std::mem::zeroed() } }
- }
");
}