]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-88071.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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() {}