Skip to content

Instantly share code, notes, and snippets.

@Hirrolot
Created January 18, 2022 19:43
Show Gist options
  • Save Hirrolot/504dfe97627895c9f8f82697e27bb142 to your computer and use it in GitHub Desktop.
Save Hirrolot/504dfe97627895c9f8f82697e27bb142 to your computer and use it in GitHub Desktop.
Zig massive compile-time error
An error occurred:
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
/tmp/playground3425286633/play.zig:10:37: error: expected type '[]const u8', found 'comptime_int'
'*' => stdout.print(args[arg_idx]),
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment