mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
10 lines
187 B
Zig
10 lines
187 B
Zig
|
fn foo() !void {
|
||
|
var i: anyerror!usize = 1;
|
||
|
_ = i catch |i| return i;
|
||
|
}
|
||
|
|
||
|
// error
|
||
|
//
|
||
|
// :3:18: error: redeclaration of local variable 'i'
|
||
|
// :2:9: note: previous declaration here
|