diff options
Diffstat (limited to 'tests/ui/consts/issue-88071.rs')
-rw-r--r-- | tests/ui/consts/issue-88071.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-88071.rs b/tests/ui/consts/issue-88071.rs new file mode 100644 index 000000000..f58cdb594 --- /dev/null +++ b/tests/ui/consts/issue-88071.rs @@ -0,0 +1,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() {} |