2017-08-28 07:59:16 -05:00
|
|
|
// FIXME: Probably failing due to https://github.com/solson/miri/issues/296
|
|
|
|
// compile-flags: -Zmir-emit-validate=0
|
2017-06-23 05:55:49 -05:00
|
|
|
// error-pattern: the evaluated program panicked
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
fn main() {
|
2017-06-23 09:41:56 -05:00
|
|
|
// can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
|
2017-06-24 05:46:35 -05:00
|
|
|
assert!(&A as *const A == &A as *const A);
|
2017-06-23 05:55:49 -05:00
|
|
|
}
|