// option. This file may not be copied, modified, or distributed
// except according to those terms.
-
-#![feature(libc)]
-
-extern crate libc;
-
struct TestStruct {
- x: *const libc::c_void
+ x: *const u8,
}
unsafe impl Sync for TestStruct {}
extern fn foo() {}
const x: extern "C" fn() = foo;
-static y: TestStruct = TestStruct { x: x as *const libc::c_void };
+static y: TestStruct = TestStruct { x: x as *const u8 };
pub fn main() {
- assert_eq!(x as *const libc::c_void, y.x);
+ assert_eq!(x as *const u8, y.x);
}