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 a350bea commit a063982Copy full SHA for a063982
src/test/compile-fail/issue-2467.rs
@@ -0,0 +1,6 @@
1
+enum test { thing = 3u } //! ERROR mismatched types
2
+//!^ ERROR expected signed integer constant
3
+fn main() {
4
+ log(error, thing as int);
5
+ assert(thing as int == 3);
6
+}
0 commit comments