diff --git a/src/main.rs b/src/main.rs index 49fd6a4..dfe5715 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,10 +74,15 @@ pub fn run(src: &'static str) { pub fn main() { env::set_var("RUST_BACKTRACE", "1"); let src = " -{let x = match (-1, (2)) with { - (x, (y)) -> y +let x = when { + false -> :no + nil -> { + let x = :no + x + } + :else -> :yes } x -} "; + "; run(src); }