diff options
| author | bendn <bend.n@outlook.com> | 2025-09-04 14:06:31 +0700 |
|---|---|---|
| committer | bendn <bend.n@outlook.com> | 2025-09-04 14:17:31 +0700 |
| commit | f19da67ed75468a2cb90572c065d1c3e2a8cadec (patch) | |
| tree | 0742fbf1d587ab8b141b72437091e5488bb298e5 /library/std | |
| parent | 033c0a4742794f5608b19eb78458726596f8ec18 (diff) | |
| download | rust-f19da67ed75468a2cb90572c065d1c3e2a8cadec.tar.gz rust-f19da67ed75468a2cb90572c065d1c3e2a8cadec.zip | |
add test
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/tests/path.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/tests/path.rs b/library/std/tests/path.rs index 3577f0d9c7b..fa76c50597b 100644 --- a/library/std/tests/path.rs +++ b/library/std/tests/path.rs @@ -2526,3 +2526,9 @@ fn normalize_lexically() { check_err(r"\\?\UNC\server\share\a\..\.."); } } + +#[test] +/// See issue#146183 +fn compare_path_to_str() { + assert!(&PathBuf::from("x") == "x"); +} |
