7 lines
212 B
Rust
7 lines
212 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §2, §5, §6
|
|
module grammar.negative_pattern
|
|
fn main() -> u64 effects [] { return match -1i64 { -1i64 => {42u64}, _ => 0u64 }; }
|