about summary refs log tree commit diff
path: root/library/std/src/sys/windows/path
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-11-16 14:36:20 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-11-17 03:11:14 +0900
commitddc1d58ca83ab2c176929c47bd679cfbe8cf32f9 (patch)
treecfecfff5a6b3a0cbb73c78f8c176c3da4b15852d /library/std/src/sys/windows/path
parentb0535508474fb4353a3b83ef79df87817f028a71 (diff)
downloadrust-ddc1d58ca83ab2c176929c47bd679cfbe8cf32f9.tar.gz
rust-ddc1d58ca83ab2c176929c47bd679cfbe8cf32f9.zip
windows: Return the "Not Found" error when a path is empty
Diffstat (limited to 'library/std/src/sys/windows/path')
-rw-r--r--library/std/src/sys/windows/path/tests.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/windows/path/tests.rs b/library/std/src/sys/windows/path/tests.rs
index c6c84519f41..425c2011b32 100644
--- a/library/std/src/sys/windows/path/tests.rs
+++ b/library/std/src/sys/windows/path/tests.rs
@@ -91,7 +91,6 @@ fn verbatim() {
     // Make sure opening a drive will work.
     check("Z:", "Z:");
 
-    // An empty path or a path that contains null are not valid paths.
-    assert!(maybe_verbatim(Path::new("")).is_err());
+    // A path that contains null is not a valid path.
     assert!(maybe_verbatim(Path::new("\0")).is_err());
 }