rust/tests/run-pass/btreemap.rs
2017-08-28 14:10:59 +02:00

15 lines
277 B
Rust

#[derive(PartialEq, Eq, PartialOrd, Ord)]
pub enum Foo {
A(&'static str),
_B,
_C,
}
pub fn main() {
let mut b = std::collections::BTreeSet::new();
b.insert(Foo::A("\'"));
b.insert(Foo::A("/="));
b.insert(Foo::A("#"));
b.insert(Foo::A("0o"));
}