aboutsummaryrefslogtreecommitdiff
path: root/test/cases/type_of.0.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-11-11 07:27:31 +0000
committermlugg <mlugg@mlugg.co.uk>2023-11-19 09:56:51 +0000
commit21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b (patch)
treeaab7cc16498184bac0fd8b6d5443f7bd606e7bf8 /test/cases/type_of.0.zig
parent2c1acb618027939c0812bc87a432b51632127717 (diff)
downloadzig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.tar.gz
zig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.zip
test: update cases to silence 'var is never mutated' errors
Diffstat (limited to 'test/cases/type_of.0.zig')
-rw-r--r--test/cases/type_of.0.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cases/type_of.0.zig b/test/cases/type_of.0.zig
index 5f7702ef2c..823572c863 100644
--- a/test/cases/type_of.0.zig
+++ b/test/cases/type_of.0.zig
@@ -1,5 +1,6 @@
pub fn main() void {
var x: usize = 0;
+ _ = &x;
const z = @TypeOf(x, @as(u128, 5));
assert(z == u128);
}