Created
February 13, 2021 05:31
-
-
Save marler8997/1121440cab0a20cf96f05561b6fae288 to your computer and use it in GitHub Desktop.
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 Bad = error { Bad }; | |
fn foo() Bad!Bad { | |
return error.Bad; | |
} | |
pub fn main() !void { | |
@import("std").debug.print("{}\n", .{try foo()}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment