• bi_tux@lemmy.world
    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