| ... | @@ -1424,7 +1424,8 @@ test "ArrayListAligned/ArrayListAlignedUnmanaged accepts unaligned slices" { | ... | @@ -1424,7 +1424,8 @@ test "ArrayListAligned/ArrayListAlignedUnmanaged accepts unaligned slices" { |
| 1424 | | 1424 | |
| 1425 | test "std.ArrayList(u0)" { | 1425 | test "std.ArrayList(u0)" { |
| 1426 | // An ArrayList on zero-sized types should not need to allocate | 1426 | // An ArrayList on zero-sized types should not need to allocate |
| 1427 | const a = testing.FailingAllocator.init(testing.allocator, 0).allocator(); | 1427 | var failing_allocator = testing.FailingAllocator.init(testing.allocator, 0); |
| | 1428 | const a = failing_allocator.allocator(); |
| 1428 | | 1429 | |
| 1429 | var list = ArrayList(u0).init(a); | 1430 | var list = ArrayList(u0).init(a); |
| 1430 | defer list.deinit(); | 1431 | defer list.deinit(); |