aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/slice.zig
diff options
context:
space:
mode:
authorJacob G-W <jacoblevgw@gmail.com>2021-06-09 21:35:42 -0400
committerAndrew Kelley <andrew@ziglang.org>2021-06-21 17:03:03 -0700
commit641ecc260f43ffb2398acb80cbd141535dbbb03d (patch)
tree87455d3b460f517ad35bcda2b3a2e38599dd4aa1 /test/behavior/slice.zig
parentd34a1ccb0ea75ba31f374b8b2d34e18326b147b1 (diff)
downloadzig-641ecc260f43ffb2398acb80cbd141535dbbb03d.tar.gz
zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.zip
std, src, doc, test: remove unused variables
Diffstat (limited to 'test/behavior/slice.zig')
-rw-r--r--test/behavior/slice.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/behavior/slice.zig b/test/behavior/slice.zig
index d324c34477..38d0faa25a 100644
--- a/test/behavior/slice.zig
+++ b/test/behavior/slice.zig
@@ -104,6 +104,7 @@ test "obtaining a null terminated slice" {
// now we obtain a null terminated slice:
const ptr = buf[0..3 :0];
+ _ = ptr;
var runtime_len: usize = 3;
const ptr2 = buf[0..runtime_len :0];