summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed')
-rw-r--r--tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed b/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed
new file mode 100644
index 000000000..4b4a416b1
--- /dev/null
+++ b/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed
@@ -0,0 +1,13 @@
+// run-rustfix
+
+pub enum Range {
+ //~^ ERROR `enum` and `struct` are mutually exclusive
+ Valid {
+ begin: u32,
+ len: u32,
+ },
+ Out,
+}
+
+fn main() {
+}