about summary refs log tree commit diff
path: root/library/alloctests
diff options
context:
space:
mode:
authorJeremy Smart <jeremy3141592@gmail.com>2025-06-11 22:57:57 -0400
committerJeremy Smart <jeremy3141592@gmail.com>2025-06-11 22:57:57 -0400
commit9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd (patch)
treecc67403f309b4303ea1a156529aed974a29cb2dc /library/alloctests
parent6469eb1c28bd6fd5fbc94cec1828fc69b00421d5 (diff)
downloadrust-9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd.tar.gz
rust-9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd.zip
update docs, test
Diffstat (limited to 'library/alloctests')
-rw-r--r--library/alloctests/tests/vec.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloctests/tests/vec.rs b/library/alloctests/tests/vec.rs
index adbd4ccb897..51b49b8edb3 100644
--- a/library/alloctests/tests/vec.rs
+++ b/library/alloctests/tests/vec.rs
@@ -2708,6 +2708,8 @@ fn test_peek_mut() {
         assert_eq!(*p, 2);
         *p = 0;
         assert_eq!(*p, 0);
+        p.pop();
+        assert_eq!(vec.len(), 1);
     } else {
         unreachable!()
     }