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.
2 parents 8c6c6d7 + 4aca1d0 commit 86e2367Copy full SHA for 86e2367
tests/compile-fail/zst2.rs
@@ -5,7 +5,5 @@ 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
- if &A as *const A as *const () != &() as *const _ {
9
- panic!()
10
- }
+ assert!(&A as *const A as *const () == &() as *const _)
11
}
tests/compile-fail/zst3.rs
- if &A as *const A != &A as *const A {
- panic!();
+ assert!(&A as *const A == &A as *const A);
0 commit comments