summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/impl-parts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/impl-parts.rs')
-rw-r--r--src/test/rustdoc/impl-parts.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/impl-parts.rs b/src/test/rustdoc/impl-parts.rs
new file mode 100644
index 000000000..249158c1a
--- /dev/null
+++ b/src/test/rustdoc/impl-parts.rs
@@ -0,0 +1,12 @@
+#![feature(negative_impls)]
+#![feature(auto_traits)]
+
+pub auto trait AnAutoTrait {}
+
+pub struct Foo<T> { field: T }
+
+// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
+// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
+// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
+// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
+impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}