File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ static BLOCK_FN: fn(usize) -> usize = { foo::<usize> };
39
39
40
40
static BLOCK_ENUM_CONSTRUCTOR : fn ( usize ) -> Option < usize > = { Some } ;
41
41
42
- // FIXME #13972
43
- // static BLOCK_UNSAFE_SAFE_PTR: &'static isize = unsafe { &*(0xdeadbeef as *const isize) };
44
- // static BLOCK_UNSAFE_SAFE_PTR_2: &'static isize = unsafe {
45
- // const X: *const isize = 0xdeadbeef as *const isize;
46
- // &*X
47
- // };
48
-
49
42
pub fn main ( ) {
50
43
assert_eq ! ( BLOCK_INTEGRAL , 1 ) ;
51
44
assert_eq ! ( BLOCK_EXPLICIT_UNIT , ( ) ) ;
@@ -58,7 +51,4 @@ pub fn main() {
58
51
assert_eq ! ( BLOCK_FN_INFERRED ( 300 ) , 300 ) ;
59
52
assert_eq ! ( BLOCK_FN ( 300 ) , 300 ) ;
60
53
assert_eq ! ( BLOCK_ENUM_CONSTRUCTOR ( 200 ) , Some ( 200 ) ) ;
61
- // FIXME #13972
62
- // assert_eq!(BLOCK_UNSAFE_SAFE_PTR as *const isize as usize, 0xdeadbeef);
63
- // assert_eq!(BLOCK_UNSAFE_SAFE_PTR_2 as *const isize as usize, 0xdeadbeef);
64
54
}
You can’t perform that action at this time.
0 commit comments