Can't work around the "error: unable to resolve inferred error set"

That is not the right way to combine error sets. That’s more like writing !!void. That’s why it’s not working correctly here. (If you actually wanted to use this you’d need to use try try to unwrap both errors)
I think you can combine error sets with the || operator:

(std.fmt.BufPrintError || std.mem.Allocator.Error)!void
3 Likes