mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 02:03:08 +00:00
* the root struct decl name is fully qualified this prevents error messages containing 'main.main' * avoid declared here note when file struct is missing a member It always points at the start of the file which might contain another container misleading the user.
9 lines
215 B
Zig
9 lines
215 B
Zig
const x = @import("builtin").bogus;
|
|
export fn entry() usize { return @sizeOf(@TypeOf(x)); }
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :1:29: error: root struct of file 'builtin' has no member named 'bogus'
|