about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/keyword.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js-std/keyword.js')
-rw-r--r--tests/rustdoc-js-std/keyword.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/keyword.js b/tests/rustdoc-js-std/keyword.js
new file mode 100644
index 00000000000..868ddd7b6dc
--- /dev/null
+++ b/tests/rustdoc-js-std/keyword.js
@@ -0,0 +1,10 @@
+// ignore-order
+
+const QUERY = 'fn';
+
+const EXPECTED = {
+    'others': [
+        { 'path': 'std', 'name': 'fn', ty: 15 }, // 15 is for primitive types
+        { 'path': 'std', 'name': 'fn', ty: 21 }, // 21 is for keywords
+    ],
+};