Files
oxc-project__oxc/crates/oxc_allocator/tests/arena/capacity.rs
overlookmotel 80ba06d9a2 refactor(allocator): rename bump module to arena (#21396)
Pure refactor. Rename `bump.rs` to `arena.rs`, and rename `bump` tests directory to `arena` - in line with renaming `Bump` to `Arena` (#21394).

No substantive changes, only renaming.
2026-04-13 18:32:56 +00:00

8 lines
219 B
Rust

use oxc_allocator::arena::Arena;
#[test]
fn try_with_capacity_too_large() {
// Shouldn't panic even though the capacity is too large for a `Layout`.
let _ = Arena::try_with_capacity(isize::MAX as usize + 1);
}