mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
10 lines
167 B
Zig
10 lines
167 B
Zig
|
fn deferInvalidExample() !void {
|
||
|
defer {
|
||
|
return error.DeferError;
|
||
|
}
|
||
|
|
||
|
return error.DeferError;
|
||
|
}
|
||
|
|
||
|
// test_error=cannot return from defer expression
|