• 29 Posts
  • 147 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle











  • bi_tux@lemmy.worldto196@lemmy.blahaj.zoneDeltarule
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 month ago

    RWIIR!!!

    edit: here, I did it for you:

    use std::*;
    
    static mut sucked: bool = false;
    
    fn main() {
            unsafe {
                    check_sucked();
            }
            println!("Kris has been sucked is {}", sucked)
    }
    
    unsafe fn check_sucked() {
            if !sucked {
                    suck();
            }
    }
    
    fn suck() {
            sucked = true;
    }
    

    edit 2: fixed it