summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-34928.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/issue-34928.rs')
-rw-r--r--tests/rustdoc/issue-34928.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-34928.rs b/tests/rustdoc/issue-34928.rs
new file mode 100644
index 000000000..91b677574
--- /dev/null
+++ b/tests/rustdoc/issue-34928.rs
@@ -0,0 +1,6 @@
+#![crate_name = "foo"]
+
+pub trait Bar {}
+
+// @has foo/struct.Foo.html '//pre' 'pub struct Foo<T>(pub T)where T: Bar;'
+pub struct Foo<T>(pub T) where T: Bar;