Files
aji/tests/conformance/source/map/double_move.aji
T
dev 57603860df cli: add safe owning numeric-key maps
Register std.map with bounded U64Map<V>, exact key equality and explicit
allocation/growth. Preserve returned ownership, old slots on reserve failure
and original-authority refunds; support Copy values, owners and resources.

Cover collision/tombstone/wrap behavior, independent dictionary traces,
quota/cleanup/borrow/task rules, source/AIR parity and hosted/package CLI.
Publish the API, roadmap and measured documentation cost. General key
hashing/equality remains Q-037; numeric maps do not satisfy that gate.
2026-10-07 08:36:23 +03:00

12 lines
321 B
Rust

// expect: reject E2002
// phase: 6
// spec: docs/spec/16-standard-library.md §2.13
module test.map
import std.map;
fn bad(map: std.map.U64Map<u64>) -> void effects [] {
let first = std.map.free::<u64>(move map);
let second = std.map.free::<u64>(move map);
trap;
}
fn main() -> u64 effects [] { return 42; }