From 3ed4c17d90e0d0c46281fc3503106080b39985b2 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 25 May 2023 13:04:55 -0700 Subject: [PATCH] rustdoc: add test case for `OsString::into_string` --- tests/rustdoc-js-std/osstring-to-string.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/rustdoc-js-std/osstring-to-string.js 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' }, + ] +};