aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-02-22 14:26:45 -0500
committerGitHub <noreply@github.com>2018-02-22 14:26:45 -0500
commitb66547e98c9034e52c5647735b47dc24939c8d15 (patch)
treeb84792ffb976bdad957943043b86c515d8905ad4 /std
parent884b5fb4cfa81fba863f24cf5c6d9d7c2a21d11f (diff)
parent0845cbe27783486feb5b4b57b2839326a2c86a6b (diff)
downloadzig-b66547e98c9034e52c5647735b47dc24939c8d15.tar.gz
zig-b66547e98c9034e52c5647735b47dc24939c8d15.zip
Merge pull request #783 from bnoordhuis/fix675
name types inside functions after variable
Diffstat (limited to 'std')
-rw-r--r--std/fmt/index.zig10
1 files changed, 4 insertions, 6 deletions
diff --git a/std/fmt/index.zig b/std/fmt/index.zig
index 56b0add86d..bd5b5710e0 100644
--- a/std/fmt/index.zig
+++ b/std/fmt/index.zig
@@ -550,12 +550,6 @@ test "parse unsigned comptime" {
}
}
-// Dummy field because of https://github.com/zig-lang/zig/issues/557.
-// At top level because of https://github.com/zig-lang/zig/issues/675.
-const Struct = struct {
- unused: u8,
-};
-
test "fmt.format" {
{
var buf1: [32]u8 = undefined;
@@ -588,6 +582,10 @@ test "fmt.format" {
assert(mem.eql(u8, result, "u3: 5\n"));
}
{
+ // Dummy field because of https://github.com/zig-lang/zig/issues/557.
+ const Struct = struct {
+ unused: u8,
+ };
var buf1: [32]u8 = undefined;
const value = Struct {
.unused = 42,