MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 5 days agoLabels go brrrrlemm.eeimagemessage-square29fedilinkarrow-up11arrow-down10cross-posted to: [email protected]
arrow-up11arrow-down1imageLabels go brrrrlemm.eeMasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 5 days agomessage-square29fedilinkcross-posted to: [email protected]
minus-squarerenegadespork@lemmy.jelliefrontier.netlinkfedilinkEnglisharrow-up0·edit-25 days agolet comment: String = String::from(“lol”); println!(“{}”, comment);
minus-squarespacecadet@lemm.eelinkfedilinkarrow-up0·5 days agoNot inside a main function, won’t pass rust compiler check
minus-squarerenegadespork@lemmy.jelliefrontier.netlinkfedilinkEnglisharrow-up0·5 days agoJust a snippet from a bigger function.
minus-squareBogasse@lemmy.mllinkfedilinkarrow-up0·edit-25 days agoprintln!("{comment}"); C’mon, it’s 2025!
let comment: String = String::from(“lol”);
println!(“{}”, comment);
Not inside a main function, won’t pass rust compiler check
Just a snippet from a bigger function.
println!("{comment}");
C’mon, it’s 2025!