Mutable ref

This commit is contained in:
2026-05-04 18:00:50 +02:00
parent a057c50a53
commit 860f51ea06
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ while_stmt = {
// ================= EXPRESSIONS =================
tuple_type = { "(" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ")" }
path_type = { static_path ~ ("<" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ">")? }
ref_type = { "*" }
ref_type = { mutable? ~ "*" }
type_expr = { (path_type | tuple_type) ~ ref_type* }
primary = {