aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/@import_zon_expected_void.zig
blob: 82f446a914c02e55b78c794981788248c52ce663 (plain)
1
2
3
4
5
6
7
8
9
10
11
export fn entry() void {
    const U = union(enum) { a: void };
    const f: U = @import("zon/simple_union.zon");
    _ = f;
}

// error
// imports=zon/simple_union.zon
//
// simple_union.zon:1:9: error: expected type 'void'
// tmp.zig:3:26: note: imported here