summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-88071.rs
blob: f58cdb5945e53e18ee3cb65894da7ba7954fb99b (plain)
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() {}