rust/tests/ui/hashmap/hashmap-path-key.rs
2025-12-13 00:54:20 +09:00

11 lines
252 B
Rust

//! regression test for <https://github.com/rust-lang/rust/issues/23036>
//@ run-pass
use std::collections::HashMap;
use std::path::Path;
fn main() {
let mut map = HashMap::new();
map.insert(Path::new("a"), 0);
map.get(Path::new("a"));
}