// iref handles are compared with == and != only; they have no order. // expect: reject E7005 // phase: 6 // spec: docs/spec/03-memory-model.md module demo.iref_order fn main(heap: cap) -> u64 effects [mem.alloc] { let isl = island.create(1u64, heap) or trap; var v: u64 = 0; { ref g = isl; let a = island.root(g); if a < a { v = 1; } } island.destroy(move isl); v }