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 7fee392 commit 1eebb1fCopy full SHA for 1eebb1f
src/test/run-pass/signed-shift-const-eval.rs
@@ -0,0 +1,4 @@
1
+enum test { thing = -5 >> 1u }
2
+fn main() {
3
+ assert(thing as int == -3);
4
+}
0 commit comments