std.debug.print("{}\n", .{1e.5});
should not compile
#20385
Labels
Milestone
std.debug.print("{}\n", .{1e.5});
should not compile
#20385
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
std.debug.print("{}\n", .{1e.5});
=> 0e0Expected Behavior
Code should not compile.
1e.5
is not a vaild floating point literal.Trying this in c gives
error: exponent has no digits
The text was updated successfully, but these errors were encountered: