Attempting to run the following example:
const std = @import("std");
pub fn main() !void {
var stdout_buffer: [1024]u8 = undefined;
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
const stdout = &stdout_writer.interface;
try stdout.print("Hello, World!\n", .{});
try stdout.flush(); // Don't forget to flush!
}
fails with the following message:
Compiling...
error: WriteFailed
---
exit with exit code 1
---
Attempting to run the following example:
fails with the following message: