mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +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
|