summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-88071.rs
blob: 1c38c43e6c0c51292592f592818580a3af00c81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass
//
// regression test for #88071

#![feature(const_btree_new)]

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() {}