| author | |
| committer | |
| log | c947e79d73d3ec7a7a7c4640f001b34f63d36d89 |
| tree | 7c778f2cbe77e1ebc0e578185583c88c018520b8 |
| parent | 8af59d1f98266bd70b3afb44d196bbd151cedf22 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/meta.zig+1-1| ... | ... | @@ -719,7 +719,7 @@ pub fn TagPayloadByName(comptime U: type, comptime tag_name: []const u8) type { |
| 719 | 719 | return field_info.type; |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | unreachable; | |
| 722 | @compileError("no field '" ++ tag_name ++ "' in union '" ++ @typeName(U) ++ "'"); | |
| 723 | 723 | } |
| 724 | 724 | |
| 725 | 725 | /// Given a tagged union type, and an enum, return the type of the union field |