MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 3 days agoLabels go brrrrlemm.eeimagemessage-square29fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageLabels go brrrrlemm.eeMasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 3 days agomessage-square29fedilink
minus-squarerenegadespork@lemmy.jelliefrontier.netlinkfedilinkEnglisharrow-up0·edit-23 days agolet comment: String = String::from(“lol”); println!(“{}”, comment);
minus-squarespacecadet@lemm.eelinkfedilinkarrow-up0·3 days agoNot inside a main function, won’t pass rust compiler check
minus-squarerenegadespork@lemmy.jelliefrontier.netlinkfedilinkEnglisharrow-up0·3 days agoJust a snippet from a bigger function.
minus-squareBogasse@lemmy.mllinkfedilinkarrow-up0·edit-23 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!