summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doc-hidden-method-13698.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rustdoc/doc-hidden-method-13698.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc/doc-hidden-method-13698.rs b/tests/rustdoc/doc-hidden-method-13698.rs
new file mode 100644
index 000000000..f1bd6e73b
--- /dev/null
+++ b/tests/rustdoc/doc-hidden-method-13698.rs
@@ -0,0 +1,19 @@
+// aux-build:issue-13698.rs
+// ignore-cross-compile
+
+// https://github.com/rust-lang/rust/issues/13698
+#![crate_name="issue_13698"]
+
+extern crate issue_13698;
+
+pub struct Foo;
+// @!has issue_13698/struct.Foo.html '//*[@id="method.foo"]' 'fn foo'
+impl issue_13698::Foo for Foo {}
+
+pub trait Bar {
+ #[doc(hidden)]
+ fn bar(&self) {}
+}
+
+// @!has issue_13698/struct.Foo.html '//*[@id="method.bar"]' 'fn bar'
+impl Bar for Foo {}