summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum/enum-in-scope.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/enum/enum-in-scope.stderr')
-rw-r--r--tests/ui/enum/enum-in-scope.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/enum/enum-in-scope.stderr b/tests/ui/enum/enum-in-scope.stderr
new file mode 100644
index 000000000..49a01abcb
--- /dev/null
+++ b/tests/ui/enum/enum-in-scope.stderr
@@ -0,0 +1,12 @@
+error[E0530]: let bindings cannot shadow tuple structs
+ --> $DIR/enum-in-scope.rs:6:9
+ |
+LL | struct hello(isize);
+ | -------------------- the tuple struct `hello` is defined here
+...
+LL | let hello = 0;
+ | ^^^^^ cannot be named the same as a tuple struct
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0530`.