// expect: reject E0006 // phase: 6 // spec: docs/spec/04-concurrency-and-atomics.md §38.1; docs/spec/15-source-language.md §10 // AIR twin: phase3/reject/channels_endpoint_element.air module test.channels_endpoint_element fn f(heap: cap) -> void effects [mem.alloc] { match channel.make>(1, heap) { // diagnostic here: channel.make ok(tx, rx) => { trap; } err(e) => { trap; } } } fn main() -> void effects [] {}