Skip to content

Commit 13c7b97

Browse files
committed
Add test for #2995
1 parent 8255aa1 commit 13c7b97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn bad (p: *int) {
2+
let _q: &int = p as ∫ //~ ERROR non-scalar cast
3+
}

0 commit comments

Comments
 (0)