Merge pull request #215 from oli-obk/master

Make zst compile-fail tests more readable
This commit is contained in:
Eduard-Mihai Burtescu 2017-06-24 13:59:41 +03:00 committed by GitHub
commit 86e2367029
2 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,5 @@ struct A;
fn main() {
// can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
if &A as *const A as *const () != &() as *const _ {
panic!()
}
assert!(&A as *const A as *const () == &() as *const _)
}

View File

@ -5,7 +5,5 @@ struct A;
fn main() {
// can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
if &A as *const A != &A as *const A {
panic!();
}
assert!(&A as *const A == &A as *const A);
}