about summary refs log tree commit diff
path: root/src/test/rustdoc-json/structs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-json/structs.rs')
-rw-r--r--src/test/rustdoc-json/structs.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/structs.rs b/src/test/rustdoc-json/structs.rs
new file mode 100644
index 00000000000..43fc4743503
--- /dev/null
+++ b/src/test/rustdoc-json/structs.rs
@@ -0,0 +1,17 @@
+use std::collections::HashMap;
+
+pub struct PlainEmpty {}
+
+pub struct Tuple(u32, String);
+
+pub struct Unit;
+
+pub struct WithPrimitives<'a> {
+    num: u32,
+    s: &'a str,
+}
+
+pub struct WithGenerics<T, U> {
+    stuff: Vec<T>,
+    things: HashMap<U, U>,
+}