2017-06-23 12:55:49 +02:00
|
|
|
// error-pattern: the evaluated program panicked
|
|
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2017-06-23 16:41:56 +02:00
|
|
|
// 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!();
|
|
|
|
|
}
|
2017-06-23 12:55:49 +02:00
|
|
|
}
|