We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee67d71 + 628eed6 commit 1a33fecCopy full SHA for 1a33fec
src/linear_map.rs
@@ -570,6 +570,18 @@ mod test {
570
static mut _L: LinearMap<i32, i32, 8> = LinearMap::new();
571
}
572
573
+ #[test]
574
+ fn borrow() {
575
+ use crate::String;
576
+
577
+ let mut map = LinearMap::<_, _, 8>::new();
578
579
+ let s = String::<64>::try_from("Hello, world!").unwrap();
580
+ map.insert(s, 42).unwrap();
581
582
+ assert_eq!(map.get("Hello, world!").unwrap(), &42);
583
+ }
584
585
#[test]
586
fn partial_eq() {
587
{
0 commit comments