]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-88071.rs
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / issue-88071.rs
1 // check-pass
2 //
3 // regression test for #88071
4
5 #![feature(const_btree_new)]
6
7 use std::collections::BTreeMap;
8
9 pub struct CustomMap<K, V>(BTreeMap<K, V>);
10
11 impl<K, V> CustomMap<K, V>
12 where
13     K: Ord,
14 {
15     pub const fn new() -> Self {
16         CustomMap(BTreeMap::new())
17     }
18 }
19
20 fn main() {}