rust/tests/ui/consts/issue-88071.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
263 B
Rust
Raw Normal View History

2021-10-11 14:03:57 +00:00
// 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() {}