blob: f0c23c7e852d35f2955a13e74069201571186e48 [file] [log] [blame]
//@ check-pass
// 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() {}