Skip to content

Commit e10194d

Browse files
authored
Rollup merge of rust-lang#52527 - ljedrz:cleanup_13973, r=oli-obk
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
2 parents 967d252 + 576cfc5 commit e10194d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/test/run-pass/const-block.rs

-10
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ static BLOCK_FN: fn(usize) -> usize = { foo::<usize> };
3939

4040
static BLOCK_ENUM_CONSTRUCTOR: fn(usize) -> Option<usize> = { Some };
4141

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-
4942
pub fn main() {
5043
assert_eq!(BLOCK_INTEGRAL, 1);
5144
assert_eq!(BLOCK_EXPLICIT_UNIT, ());
@@ -58,7 +51,4 @@ pub fn main() {
5851
assert_eq!(BLOCK_FN_INFERRED(300), 300);
5952
assert_eq!(BLOCK_FN(300), 300);
6053
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);
6454
}

0 commit comments

Comments
 (0)