mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
apply Vexu's suggestion to use failing_allocator for now
This commit is contained in:
parent
d1e4600675
commit
5ce9c878cf
@ -36,13 +36,12 @@ fn parseFree(comptime T: type, value: T, allocator: std.mem.Allocator) void {
|
||||
}
|
||||
|
||||
pub export fn entry() void {
|
||||
const allocator = std.testing.allocator_instance.allocator();
|
||||
const allocator = std.testing.failing_allocator;
|
||||
_ = parse(std.StringArrayHashMap(bool), allocator) catch return;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=llvm
|
||||
// target=x86_64-linux,aarch64-linux,arm-linux,x86_64-macos,aarch64-macos
|
||||
//
|
||||
// :11:22: error: comparison of 'void' with null
|
||||
// :25:51: error: unable to resolve comptime value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user