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 eca9e34 commit 377fcceCopy full SHA for 377fcce
tests/compile-fail/zst2.rs
@@ -4,5 +4,8 @@
4
struct A;
5
6
fn main() {
7
- assert_eq!(&A as *const A as *const (), &() as *const _);
+ // can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
8
+ if &A as *const A as *const () != &() as *const _ {
9
+ panic!()
10
+ }
11
}
tests/compile-fail/zst3.rs
- assert_eq!(&A as *const A, &A as *const A);
+ if &A as *const A != &A as *const A {
+ panic!();
0 commit comments