Skip to content

Commit c163097

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

File tree

3 files changed

+12
-18
lines changed

3 files changed

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

0 commit comments

Comments
 (0)