rust/src/test/compile-fail/binop-add-ptr.rs

4 lines
130 B
Rust
Raw Normal View History

// error-pattern:binary operation + cannot be applied to type `*int`
fn die() -> *int { (0 as *int) + (0 as *int) }
fn main() { }