summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/synthetic_auto/crate-local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/synthetic_auto/crate-local.rs')
-rw-r--r--tests/rustdoc/synthetic_auto/crate-local.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/synthetic_auto/crate-local.rs b/tests/rustdoc/synthetic_auto/crate-local.rs
new file mode 100644
index 000000000..ed01f63f9
--- /dev/null
+++ b/tests/rustdoc/synthetic_auto/crate-local.rs
@@ -0,0 +1,9 @@
+#![feature(auto_traits)]
+
+pub auto trait Banana {}
+
+// @has crate_local/struct.Peach.html
+// @has - '//h3[@class="code-header"]' 'impl Banana for Peach'
+// @has - '//h3[@class="code-header"]' 'impl Send for Peach'
+// @has - '//h3[@class="code-header"]' 'impl Sync for Peach'
+pub struct Peach;