Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
capture_by_ref_if_err_switch.zig
pretty
plain
permalink
blame
history
•
8 lines
•
139 B
1
test {
2
const e: error{A}!u32 = error.A;
3
if (e) |*ptr| {} else |err| switch (err) {}
4
}
5
6
// error
7
//
8
// :3:14: error: unused capture