Skip to content

Commit f19da67

Browse files
committed
add test
1 parent 033c0a4 commit f19da67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/std/tests/path.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,3 +2526,9 @@ fn normalize_lexically() {
25262526
check_err(r"\\?\UNC\server\share\a\..\..");
25272527
}
25282528
}
2529+
2530+
#[test]
2531+
/// See issue#146183
2532+
fn compare_path_to_str() {
2533+
assert!(&PathBuf::from("x") == "x");
2534+
}

0 commit comments

Comments
 (0)