diff --git a/libc-test/tests/cmsg.rs b/libc-test/tests/cmsg.rs index bba658c498aa9..18b3a58b968b7 100644 --- a/libc-test/tests/cmsg.rs +++ b/libc-test/tests/cmsg.rs @@ -29,6 +29,7 @@ mod t { } #[test] + #[allow(unused_assignments)] // false-positive: https://github.com/rust-lang/rust/issues/147648 fn test_cmsg_firsthdr() { let mut mhdr: msghdr = unsafe { mem::zeroed() }; mhdr.msg_control = 0xdeadbeef as *mut c_void;