Files
rust/tests/compile-fail/zst3.rs

9 lines
140 B
Rust
Raw Normal View History

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