mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
d7a0fe67b3
See tracking issue #12844
12 lines
225 B
Zig
12 lines
225 B
Zig
pub fn main() void {
|
|
var i: u32 = 10;
|
|
var i: u32 = 10;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=x86_64-linux,x86_64-macos
|
|
//
|
|
// :3:9: error: redeclaration of local variable 'i'
|
|
// :2:9: note: previous declaration here
|