fix compile error test case note column number

This commit is contained in:
Andrew Kelley
2022-07-28 21:34:32 -07:00
parent 40f8f0134f
commit daac39364a

View File

@@ -3,14 +3,14 @@ pub const List = struct {
allocator: *Allocator,
pub fn init(allocator: *Allocator) List {
return List {
return List{
.len = 0,
.allocator = allocator,
};
}
};
pub var global_allocator = Allocator {
pub var global_allocator = Allocator{
.field = 1234,
};
@@ -28,4 +28,4 @@ export fn foo() void {
// target=native
//
// :23:6: error: no field or member function named 'init' in 'tmp.List'
// :1:14: note: struct declared here
// :1:18: note: struct declared here