Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. fn bug() usize {
  2.     const buff: []const u8 = undefined;
  3.  
  4.     const concatted: []const u8 = buff ++ "fozify";
  5.  
  6.     @compileError("ERROR");
  7.  
  8.     return 1;
  9. }
  10.  
  11. pub fn main() void {
  12.     const no = comptime bug();
  13.  
  14.     @import("std").debug.warn("no = {}\n", no);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement