summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/fn-sidebar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/fn-sidebar.rs')
-rw-r--r--tests/rustdoc/fn-sidebar.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/fn-sidebar.rs b/tests/rustdoc/fn-sidebar.rs
new file mode 100644
index 000000000..2fe8ebec1
--- /dev/null
+++ b/tests/rustdoc/fn-sidebar.rs
@@ -0,0 +1,9 @@
+#![crate_name = "foo"]
+
+// @has foo/fn.bar.html
+// @has - '//*[@class="sidebar-elems"]' ''
+pub fn bar() {}
+
+// @has foo/constant.BAR.html
+// @has - '//*[@class="sidebar-elems"]' ''
+pub const BAR: u32 = 0;