diff --git a/src/test/compile-fail/enum-in-scope.rs b/src/test/compile-fail/enum-in-scope.rs new file mode 100644 index 00000000000..38e95c21e8f --- /dev/null +++ b/src/test/compile-fail/enum-in-scope.rs @@ -0,0 +1,5 @@ +enum hello = int; + +fn main() { + let hello = 0; //!ERROR declaration of `hello` shadows an enum that's in +} \ No newline at end of file