#![allow(unused_variables)] fn main() { use std::collections::BTreeSet; let mut set = BTreeSet::new(); set.insert(Vec::::new()); assert_eq!(set.get(& [] [..]).unwrap().capacity(), 0); set.replace(Vec::with_capacity(10)); assert_eq!(set.get(& [] [..]).unwrap().capacity(), 10); }