| ... | @@ -5,7 +5,7 @@ pub const std_options: std.Options = .{ | ... | @@ -5,7 +5,7 @@ pub const std_options: std.Options = .{ |
| 5 | pub fn main() !void { | 5 | pub fn main() !void { |
| 6 | var st_buf: [8]usize = undefined; | 6 | var st_buf: [8]usize = undefined; |
| 7 | var buf: [1024]u8 = undefined; | 7 | var buf: [1024]u8 = undefined; |
| 8 | var stdout = std.Io.File.stdout().writer(&buf); | 8 | var stdout = std.Io.File.stdout().writer(std.Options.debug_io, &buf); |
| 9 | | 9 | |
| 10 | const captured_st = try foo(&stdout.interface, &st_buf); | 10 | const captured_st = try foo(&stdout.interface, &st_buf); |
| 11 | try std.debug.writeStackTrace(&captured_st, &stdout.interface, .no_color); | 11 | try std.debug.writeStackTrace(&captured_st, &stdout.interface, .no_color); |