rust/tests/compile-fail/zst2.rs
2017-06-23 12:55:49 +02:00

9 lines
154 B
Rust

// error-pattern: the evaluated program panicked
#[derive(Debug)]
struct A;
fn main() {
assert_eq!(&A as *const A as *const (), &() as *const _);
}