rust/src/test/compile-fail/issue-2995.rs

3 lines
76 B
Rust
Raw Normal View History

2012-12-07 23:40:15 -06:00
fn bad (p: *int) {
let _q: &int = p as ∫ //~ ERROR non-scalar cast
}