]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/cast_alignment.rs
iterate List by value
[rust.git] / tests / ui / cast_alignment.rs
index 08450ba117645b67b0f17d4845deded8762e9b55..4c08935639f1f3a5ae5fd847de7c3398ae71b31e 100644 (file)
@@ -22,4 +22,6 @@ fn main() {
     // For c_void, we should trust the user. See #2677
     (&1u32 as *const u32 as *const std::os::raw::c_void) as *const u32;
     (&1u32 as *const u32 as *const libc::c_void) as *const u32;
+    // For ZST, we should trust the user. See #4256
+    (&1u32 as *const u32 as *const ()) as *const u32;
 }