mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
19 lines
263 B
Rust
19 lines
263 B
Rust
|
// 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() {}
|