mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
11 lines
174 B
Zig
11 lines
174 B
Zig
pub fn main() void {
|
|
var i = 0;
|
|
for ("n") |_, i| {
|
|
}
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :3:19: error: redeclaration of local variable 'i'
|
|
// :2:9: note: previous declaration here
|