mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
29ae6515f3
Closes #8532
14 lines
228 B
Zig
14 lines
228 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
|