rust/src/test/compile-fail/issue-2995.rs
2012-12-07 21:40:42 -08:00

3 lines
76 B
Rust

fn bad (p: *int) {
let _q: &int = p as ∫ //~ ERROR non-scalar cast
}