blob: ca563ba097851b3b8a005ec203fcac9480e43aea (
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_new)]
use std::collections::BTreeMap;
struct Foo(BTreeMap<i32, i32>);
impl Foo {
fn new() -> Self {
Self(BTreeMap::new())
}
}
fn main() {}
|