forked from mirrors/gecko-dev
New versions have shrink_to_fit(). This also explicitly requests the "std" feature, because otherwise autocfg fails to pass the panic=abort flag to rustc and it chokes. Depends on D96130 Differential Revision: https://phabricator.services.mozilla.com/D96131
19 lines
259 B
Rust
19 lines
259 B
Rust
#[test]
|
|
fn test_create_map() {
|
|
let _m = indexmap::indexmap! {
|
|
1 => 2,
|
|
7 => 1,
|
|
2 => 2,
|
|
3 => 3,
|
|
};
|
|
}
|
|
|
|
#[test]
|
|
fn test_create_set() {
|
|
let _s = indexmap::indexset! {
|
|
1,
|
|
7,
|
|
2,
|
|
3,
|
|
};
|
|
}
|