Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn bug() usize {
- comptime var buff: []u8 = undefined;
- buff = buff ++ "HI";
- @compileError("ERROR");
- return 1;
- }
- pub fn main() void {
- const no = comptime bug();
- @import("std").debug.warn("no = {}\n", no);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement