I have a project with two files:
pub const Foo = struct {
i: u32,
};
const std = @import("std");
usingnamespace @import("foo.zig");
pub fn main() !void {
const foo = Foo { .i = 42 };
std.debug.print("{}", .{ foo.i });
}
I would expect this to compile, but I'm getting this error:
const foo = Foo { .i = 42 };```
Why isn't `Foo` visible in `main.zig`?