diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-11-11 07:27:31 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-11-19 09:56:51 +0000 |
| commit | 21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b (patch) | |
| tree | aab7cc16498184bac0fd8b6d5443f7bd606e7bf8 /test/cases/safety/@intCast to u0.zig | |
| parent | 2c1acb618027939c0812bc87a432b51632127717 (diff) | |
| download | zig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.tar.gz zig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.zip | |
test: update cases to silence 'var is never mutated' errors
Diffstat (limited to 'test/cases/safety/@intCast to u0.zig')
| -rw-r--r-- | test/cases/safety/@intCast to u0.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/safety/@intCast to u0.zig b/test/cases/safety/@intCast to u0.zig index 8c9f76e2aa..a33da87f0f 100644 --- a/test/cases/safety/@intCast to u0.zig +++ b/test/cases/safety/@intCast to u0.zig @@ -14,7 +14,7 @@ pub fn main() !void { } fn bar(one: u1, not_zero: i32) void { - var x = one << @as(u0, @intCast(not_zero)); + const x = one << @intCast(not_zero); _ = x; } // run |
