Skip to content

Commit e28f4a8

Browse files
committed
Add a regression test for #313
1 parent ac7dfca commit e28f4a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/run-pass/btreemap.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#[derive(PartialEq, Eq, PartialOrd, Ord)]
2+
pub enum Foo {
3+
A(&'static str),
4+
_B,
5+
_C,
6+
}
7+
8+
pub fn main() {
9+
let mut b = std::collections::BTreeSet::new();
10+
b.insert(Foo::A("\'"));
11+
b.insert(Foo::A("/="));
12+
b.insert(Foo::A("#"));
13+
b.insert(Foo::A("0o"));
14+
}

0 commit comments

Comments
 (0)