about summary refs log tree commit diff
path: root/tests/rustdoc/doc-hidden-method-13698.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-09-27 17:15:37 -0700
committerMichael Howell <michael@notriddle.com>2023-09-27 17:15:37 -0700
commit7cd8b2c9253e83c8101a45ccf6e401cd3160650c (patch)
tree6845aa1f60ffffea3787791ed2cde8bd7c46f612 /tests/rustdoc/doc-hidden-method-13698.rs
parent79195d5cbbf839ed6db8cda394b0a7b2ef447ba7 (diff)
downloadrust-7cd8b2c9253e83c8101a45ccf6e401cd3160650c.tar.gz
rust-7cd8b2c9253e83c8101a45ccf6e401cd3160650c.zip
Rename issue-\d+.rs tests to have meaningful names
Diffstat (limited to 'tests/rustdoc/doc-hidden-method-13698.rs')
-rw-r--r--tests/rustdoc/doc-hidden-method-13698.rs18
1 files changed, 18 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 00000000000..ead005301a9
--- /dev/null
+++ b/tests/rustdoc/doc-hidden-method-13698.rs
@@ -0,0 +1,18 @@
+// aux-build:issue-13698.rs
+// ignore-cross-compile
+
+#![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 {}