()
| 1680 | #[test] |
| 1681 | #[should_panic(expected = "buffer length overflow")] |
| 1682 | fn test_mutable_reserve_overflow() { |
| 1683 | // Tests overflow during growth (checked_add) |
| 1684 | let mut buf = MutableBuffer::new(1); |
| 1685 | buf.push(1u8); |
| 1686 | buf.reserve(usize::MAX); |
| 1687 | } |
| 1688 | } |