test: update cases to silence 'var is never mutated' errors

This commit is contained in:
mlugg
2023-11-11 07:27:31 +00:00
parent 2c1acb6180
commit 21fa187abc
289 changed files with 671 additions and 489 deletions

View File

@@ -2,7 +2,8 @@ const MyEnum = enum { One, Two, Three };
pub fn main() u8 {
var val: MyEnum = .Two;
var a: u8 = switch (val) {
_ = &val;
const a: u8 = switch (val) {
.One => 1,
.Two => 2,
.Three => 3,