test: update cases to silence 'var is never mutated' errors
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
comptime {
|
||||
var x: [*c]u8 = null;
|
||||
var runtime_len: usize = 0;
|
||||
var y = x[0..runtime_len];
|
||||
_ = y;
|
||||
_ = &runtime_len;
|
||||
_ = x[0..runtime_len];
|
||||
}
|
||||
|
||||
// error
|
||||
// target=native
|
||||
//
|
||||
// :4:14: error: slice of null pointer
|
||||
// :5:10: error: slice of null pointer
|
||||
|
||||
Reference in New Issue
Block a user