-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Printing temporary value struct #10412
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.10.0-dev.63+6b8e33d14
Steps to Reproduce
const T = struct {
v: u32,
};
const std = @import("std");
pub fn main() void {
var t = T{ .v = 222 };
std.debug.print("{} {}\n", .{ T{ .v = 111 }, t });
}Expected Behavior
T{ .v = 111 } T{ .v = 222 }
Actual Behavior
T{ .v = 1 } T{ .v = 222 }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.