// expect: reject E7005 // phase: 6 // spec: docs/spec/15-source-language.md ยง7 module scope_cases.spawn_shadow fn work() -> u64 effects [] { 42u64 } fn main() -> u64 effects [task.spawn, task.wait] { scope s { let s = 0u64; let t = task.spawn(s, work); let n = task.join(move t); } 0u64 }