summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/struct-like-variant.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/struct-like-variant.rs')
-rw-r--r--tests/rustdoc-js/struct-like-variant.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-js/struct-like-variant.rs b/tests/rustdoc-js/struct-like-variant.rs
new file mode 100644
index 000000000..2f52a319a
--- /dev/null
+++ b/tests/rustdoc-js/struct-like-variant.rs
@@ -0,0 +1,8 @@
+#![crate_name = "struct_like_variant"]
+
+pub enum Enum {
+ Bar {
+ /// This is a name.
+ name: String
+ }
+}