about summary refs log tree commit diff
path: root/tests/rustdoc/const-underscore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/const-underscore.rs')
-rw-r--r--tests/rustdoc/const-underscore.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc/const-underscore.rs b/tests/rustdoc/const-underscore.rs
new file mode 100644
index 00000000000..0d4809409f3
--- /dev/null
+++ b/tests/rustdoc/const-underscore.rs
@@ -0,0 +1,7 @@
+// compile-flags: --document-private-items
+
+// @!has const_underscore/constant._.html
+const _: () = {
+    #[no_mangle]
+    extern "C" fn implementation_detail() {}
+};