-
-
Save zacharycarter/984542b8530c185d643da5bb9c031397 to your computer and use it in GitHub Desktop.
zig_thread_error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
fn start1(ctx: void) u8 { | |
return 0; | |
} | |
pub fn main() u8 { | |
const thread1 = try std.os.spawnThread({}, start1); | |
} | |
// ➜ zeal git:(master) ✗ zig build-exe t_test.zig | |
// /Users/zachcarter/projects/zeal/t_test.zig:8:21: error: expected type 'u8', found 'SpawnThreadError' | |
// const thread1 = try std.os.spawnThread({}, start1); | |
// ^ | |
// /Users/zachcarter/projects/zeal/t_test.zig:7:15: note: return type declared here | |
// pub fn main() u8 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment