blob: b2dc2248b55626c2c0cd5461f2519a987af396a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// This test requires a feature gated const fn and will stop working in the future.
#![feature(const_btree_len)]
use std::collections::BTreeMap;
struct Foo(usize);
impl Foo {
fn new() -> Self {
Self(BTreeMap::len(&BTreeMap::<u8, u8>::new()))
}
}
fn main() {}
|