summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tag-variant-disr-dup.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/tag-variant-disr-dup.stderr')
-rw-r--r--src/test/ui/tag-variant-disr-dup.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/tag-variant-disr-dup.stderr b/src/test/ui/tag-variant-disr-dup.stderr
new file mode 100644
index 000000000..6b1ba43d2
--- /dev/null
+++ b/src/test/ui/tag-variant-disr-dup.stderr
@@ -0,0 +1,14 @@
+error[E0081]: discriminant value `0` assigned more than once
+ --> $DIR/tag-variant-disr-dup.rs:3:1
+ |
+LL | enum Color {
+ | ^^^^^^^^^^
+...
+LL | Black = 0x000000,
+ | -------- first assignment of `0`
+LL | White = 0x000000,
+ | -------- second assignment of `0`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0081`.