fune/third_party/rust/indexmap/tests/macros_full_path.rs
Emilio Cobos Álvarez e4d9bac157 Bug 1675639 - Update indexmap. r=boris
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
2020-11-06 12:46:13 +00:00

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,
};
}