7 lines
246 B
Rust
7 lines
246 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §2, §5, §6
|
|
module grammar.outcome_empty
|
|
fn main() -> u64 effects [task.spawn,] { match task.check_cancel() { ok() => {return 42u64;}, cancelled() => {trap;} } }
|