mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
29ae6515f3
Closes #8532
11 lines
187 B
Zig
11 lines
187 B
Zig
pub fn main() void {
|
|
var i = 0;
|
|
for ("n") |i| {
|
|
}
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :3:16: error: capture 'i' shadows local variable from outer scope
|
|
// :2:9: note: previous declaration here
|