Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
embedFile_with_bogus_file.zig
pretty
plain
permalink
blame
history
•
9 lines
•
181 B
1
const resource = @embedFile("bogus.txt");
2
3
export fn entry() usize {
4
return @sizeOf(@TypeOf(resource));
5
}
6
7
// error
8
//
9
// :1:29: error: unable to open 'bogus.txt': FileNotFound