Skip to content

Commit 8ccbad7

Browse files
committed
Disable the address-of-ZST test for now; it is buggy as it disagrees with rustc
1 parent 59a329d commit 8ccbad7

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

tests/compile-fail/zst2.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/compile-fail/zst3.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/run-pass/zst2.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#[derive(Debug)]
2+
struct A;
3+
4+
fn main() {
5+
// can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
6+
7+
// FIXME: Test disabled for now, see <https://github.com/solson/miri/issues/131>.
8+
//assert!(&A as *const A as *const () == &() as *const _);
9+
//assert!(&A as *const A == &A as *const A);
10+
}

0 commit comments

Comments
 (0)