]>
git.proxmox.com Git - rustc.git/blob - tests/ui/hashmap/hashmap-capacity-overflow.rs
2 // error-pattern:capacity overflow
3 // ignore-emscripten no processes
5 use std
::collections
::hash_map
::HashMap
;
9 let threshold
= usize::MAX
/ size_of
::<(u64, u64, u64)>();
10 let mut h
= HashMap
::<u64, u64>::with_capacity(threshold
+ 100);