We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd8320 commit c541a2dCopy full SHA for c541a2d
library/alloc/src/collections/btree/map/tests.rs
@@ -2137,9 +2137,9 @@ fn test_append_drop_leak() {
2137
let mut left = BTreeMap::new();
2138
let mut right = BTreeMap::new();
2139
left.insert(a.spawn(Panic::Never), ());
2140
- left.insert(b.spawn(Panic::InDrop), ()); // first duplicate key, dropped during append
+ left.insert(b.spawn(Panic::Never), ());
2141
left.insert(c.spawn(Panic::Never), ());
2142
- right.insert(b.spawn(Panic::Never), ());
+ right.insert(b.spawn(Panic::InDrop), ()); // first duplicate key, dropped during append
2143
right.insert(c.spawn(Panic::Never), ());
2144
2145
catch_unwind(move || left.append(&mut right)).unwrap_err();
0 commit comments