Skip to content

Commit 697aa0a

Browse files
committed
Fix test for size_of_val and align_of_val panicking on extern types
1 parent fdcf56c commit 697aa0a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

example/mini_core_hello_world.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,17 +337,6 @@ fn main() {
337337
static REF2: &u8 = REF1;
338338
assert_eq!(*REF1, *REF2);
339339

340-
extern "C" {
341-
type A;
342-
}
343-
344-
fn main() {
345-
let x: &A = unsafe { &*(1usize as *const A) };
346-
347-
assert_eq!(unsafe { intrinsics::size_of_val(x) }, 0);
348-
assert_eq!(unsafe { intrinsics::min_align_of_val(x) }, 1);
349-
}
350-
351340
#[repr(simd)]
352341
struct V([f64; 2]);
353342

0 commit comments

Comments
 (0)