summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/const-underscore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/const-underscore.rs')
-rw-r--r--src/test/rustdoc/const-underscore.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/const-underscore.rs b/src/test/rustdoc/const-underscore.rs
new file mode 100644
index 000000000..0d4809409
--- /dev/null
+++ b/src/test/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() {}
+};