From 9cad44770a15d189cddb749bc1b2fca9e24b858f Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Mon, 3 Oct 2022 10:28:30 -0400 Subject: [PATCH] test/standalone: remove unneeded FnPtr The behavior of this test is not affected by an extra level of indirection. --- test/standalone/issue_13030/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/standalone/issue_13030/main.zig b/test/standalone/issue_13030/main.zig index 1a16a3e754..5e4c976db3 100644 --- a/test/standalone/issue_13030/main.zig +++ b/test/standalone/issue_13030/main.zig @@ -1,7 +1,7 @@ -fn b(comptime T: type) ?@import("std").meta.FnPtr(fn () error{}!T) { +fn b(comptime T: type) ?*const fn () error{}!T { return null; } -export fn c() void { +export fn entry() void { _ = b(void); }