2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2014-07-25 22:45:09 -05:00
|
|
|
// error-pattern:capacity overflow
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2014-07-25 22:45:09 -05:00
|
|
|
|
2014-10-30 20:25:08 -05:00
|
|
|
use std::collections::hash_map::HashMap;
|
2014-07-25 22:45:09 -05:00
|
|
|
use std::mem::size_of;
|
|
|
|
|
|
|
|
fn main() {
|
2015-02-26 18:43:55 -06:00
|
|
|
let threshold = usize::MAX / size_of::<(u64, u64, u64)>();
|
2014-07-25 22:45:09 -05:00
|
|
|
let mut h = HashMap::<u64, u64>::with_capacity(threshold + 100);
|
|
|
|
h.insert(0, 0);
|
|
|
|
}
|