]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-88071.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / ui / consts / issue-88071.rs
1 // check-pass
2 //
3 // regression test for #88071
4
5 use std::collections::BTreeMap;
6
7 pub struct CustomMap<K, V>(BTreeMap<K, V>);
8
9 impl<K, V> CustomMap<K, V>
10 where
11     K: Ord,
12 {
13     pub const fn new() -> Self {
14         CustomMap(BTreeMap::new())
15     }
16 }
17
18 fn main() {}