; Only the scope is passed through a block argument; its task is still unjoined when the renamed scope ends. ; expect: reject E4301 ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md ยง33 module test.cfg_provenance_scope_alone air 0 lang 0.1 features [cancellation, effects, ownership, tasks] fn @main() -> u8 effects [task.spawn, task.wait] entry: %sc = task.scope.begin %t = task.spawn %sc, @zero() br @next(%sc) next(%s2: scope): task.scope.end %s2 %v = const.u8 0 ret %v fn @rd(%p: ref) -> u8 effects [] entry: %v = load %p ret %v fn @zero() -> u8 effects [] entry: %z = const.u8 0 ret %z