mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
12 lines
222 B
Zig
12 lines
222 B
Zig
pub fn main() void {
|
|
var i = 0;
|
|
while ("n") |bruh| {
|
|
_ = bruh;
|
|
} else |i| {}
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :5:13: error: capture 'i' shadows local variable from outer scope
|
|
// :2:9: note: previous declaration here
|