We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8255aa1 commit 13c7b97Copy full SHA for 13c7b97
src/test/compile-fail/issue-2995.rs
@@ -0,0 +1,3 @@
1
+fn bad (p: *int) {
2
+ let _q: &int = p as ∫ //~ ERROR non-scalar cast
3
+}
0 commit comments