Merge pull request #215 from oli-obk/master
Make zst compile-fail tests more readable
This commit is contained in:
commit
86e2367029
2 changed files with 2 additions and 6 deletions
|
|
@ -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 _)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue