From f19da67ed75468a2cb90572c065d1c3e2a8cadec Mon Sep 17 00:00:00 2001 From: bendn Date: Thu, 4 Sep 2025 14:06:31 +0700 Subject: [PATCH] add test --- library/std/tests/path.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/std/tests/path.rs b/library/std/tests/path.rs index 3577f0d9c7bb..fa76c50597b0 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"); +}