mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
10 lines
184 B
Zig
10 lines
184 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
|