summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum/enum-discrim-autosizing.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/enum/enum-discrim-autosizing.stderr')
-rw-r--r--tests/ui/enum/enum-discrim-autosizing.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/enum/enum-discrim-autosizing.stderr b/tests/ui/enum/enum-discrim-autosizing.stderr
new file mode 100644
index 000000000..be3d7c64e
--- /dev/null
+++ b/tests/ui/enum/enum-discrim-autosizing.stderr
@@ -0,0 +1,15 @@
+error[E0081]: discriminant value `0` assigned more than once
+ --> $DIR/enum-discrim-autosizing.rs:6:1
+ |
+LL | enum Eu64 {
+ | ^^^^^^^^^
+LL |
+LL | Au64 = 0,
+ | - `0` assigned here
+LL |
+LL | Bu64 = 0x8000_0000_0000_0000
+ | --------------------- `0` (overflowed from `9223372036854775808`) assigned here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0081`.