#![allow(unused_variables)] #![feature(btree_set_entry)] fn main() { use std::collections::BTreeSet; let mut set = BTreeSet::new(); set.entry("poneyland").or_insert(); assert_eq!(set.entry("poneyland").get(), & "poneyland"); assert_eq!(set.entry("horseland").get(), & "horseland"); }