about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/osstring-to-string.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-05-25 13:04:55 -0700
committerMichael Howell <michael@notriddle.com>2023-06-10 13:50:40 -0700
commit3ed4c17d90e0d0c46281fc3503106080b39985b2 (patch)
tree5457d61123dc509f1387c78e579f52151df3dab3 /tests/rustdoc-js-std/osstring-to-string.js
parentef8ee73fc4ff70a426e71f900441f040db252dae (diff)
downloadrust-3ed4c17d90e0d0c46281fc3503106080b39985b2.tar.gz
rust-3ed4c17d90e0d0c46281fc3503106080b39985b2.zip
rustdoc: add test case for `OsString::into_string`
Diffstat (limited to 'tests/rustdoc-js-std/osstring-to-string.js')
-rw-r--r--tests/rustdoc-js-std/osstring-to-string.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/osstring-to-string.js b/tests/rustdoc-js-std/osstring-to-string.js
new file mode 100644
index 00000000000..91f517df2ea
--- /dev/null
+++ b/tests/rustdoc-js-std/osstring-to-string.js
@@ -0,0 +1,10 @@
+// exact-match
+
+// https://github.com/rust-lang/rust/issues/60485#issuecomment-663900624
+const QUERY = 'OsString -> String';
+
+const EXPECTED = {
+    'others': [
+        { 'path': 'std::ffi::OsString', 'name': 'into_string' },
+    ]
+};