// check-pass // Test several functions can be used for constants // 1. Vec::new() // 2. String::new() // 3. BTreeMap::new() // 4. BTreeSet::new() #![feature(const_btree_new)] const MY_VEC: Vec = Vec::new(); const MY_STRING: String = String::new(); use std::collections::{BTreeMap, BTreeSet}; const MY_BTREEMAP: BTreeMap = BTreeMap::new(); const MY_BTREESET: BTreeSet = BTreeSet::new(); fn main() {}