We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a329d commit 8ccbad7Copy full SHA for 8ccbad7
tests/compile-fail/zst2.rs
tests/compile-fail/zst3.rs
tests/run-pass/zst2.rs
@@ -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