1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// check-pass // // regression test for #88071 use std::collections::BTreeMap; pub struct CustomMap<K, V>(BTreeMap<K, V>); impl<K, V> CustomMap<K, V> where K: Ord, { pub const fn new() -> Self { CustomMap(BTreeMap::new()) } } fn main() {}