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