; Endpoints inside channel elements belong to the reserved feature channel_transfer. ; expect: reject E0006 ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md module test.channels_endpoint_element air 0 lang 0.1 features [cancellation, capabilities, channels, effects, heap, ownership, resources, tasks] fn @f(%heap: cap) -> void effects [mem.alloc] entry: %n = const.usize 1 channel.make sender, %n, %heap, ok -> @made, err -> @oom made(%tx: sender>, %rx: receiver>): trap oom(%e: alloc_error): trap