summaryrefslogtreecommitdiffstats
path: root/src/test/pretty/enum-variant-vis.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/pretty/enum-variant-vis.rs')
-rw-r--r--src/test/pretty/enum-variant-vis.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/pretty/enum-variant-vis.rs b/src/test/pretty/enum-variant-vis.rs
new file mode 100644
index 000000000..fc646c295
--- /dev/null
+++ b/src/test/pretty/enum-variant-vis.rs
@@ -0,0 +1,8 @@
+// pp-exact
+
+// Check that the visibility is printed on an enum variant.
+
+fn main() {}
+
+#[cfg(FALSE)]
+enum Foo { pub V, }