; task.spawn requires the effect task.spawn. ; expect: reject E3101 ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md module test.tasks_spawn_without_effect air 0 lang 0.1 features [arrays, effects, ownership, tasks] fn @main() -> void effects [] entry: %sc = task.scope.begin %t = task.spawn %sc, @noop() task.join %t task.scope.end %sc ret fn @noop() -> void effects [] entry: ret