2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2021-10-11 16:03:57 +02:00
|
|
|
//
|
|
|
|
|
// 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() {}
|