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 e740985 commit db7a1f7Copy full SHA for db7a1f7
src/test/compile-fail/enum-in-scope.rs
@@ -0,0 +1,5 @@
1
+enum hello = int;
2
+
3
+fn main() {
4
+ let hello = 0; //!ERROR declaration of `hello` shadows an enum that's in
5
+}
0 commit comments