Merge pull request #215 from oli-obk/master
Make zst compile-fail tests more readable
This commit is contained in:
commit
86e2367029
@ -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…
x
Reference in New Issue
Block a user