; The scope ends while a task spawned from it is not joined. ; expect: reject E4301 ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md module test.tasks_scope_end_unjoined air 0 lang 0.1 features [arrays, ownership, tasks] fn @main() -> void effects [task.spawn] entry: %sc = task.scope.begin %t = task.spawn %sc, @noop() task.scope.end %sc ret fn @noop() -> void effects [] entry: ret