rust/tests/compile-fail/zst2.rs

9 lines
154 B
Rust
Raw Normal View History

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