You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structC;implDropforC{fndrop(&mutself){}}fnmain(){{letmut c = C;unsafe{*(&mut c as*mutCas*mutu8) = 1;}}println!("Hello World");}
This produces absolutely zero output in the playground because it generates a SIGTRAP and kills the program. Of course, it's hard to do much at this point because the program is in an unknown, probably-corrupt state, but we could at least print a message to stderr noting what happened.