1 2 3 4 5 6 7 8 9 10 11 12 13
// SPDX-FileCopyrightText: 2026 ReallyMe LLC // // SPDX-License-Identifier: MIT OR Apache-2.0 use super::{try_vec_with_capacity, DeterministicCborError}; #[test] fn impossible_capacity_returns_typed_allocation_failure() { assert!(matches!( try_vec_with_capacity::<u8>(usize::MAX), Err(DeterministicCborError::AllocationFailure) )); }