this post was submitted on 07 Aug 2024
1 points (100.0% liked)

Rust Programming

8140 readers
44 users here now

founded 5 years ago
MODERATORS
 

#rust folks it's supposed to throw this error without lazy_static crate , but it doesn't?
https://git.sr.ht/~carnotweat/morning-rust/tree/main/item/sum.rs#L14
cc @rust @learningrustandlemmy

you are viewing a single comment's thread
view the rest of the comments
[โ€“] BB_C 1 points 3 months ago (1 children)

Good.

Can you formulate your question better, with a minimal example and properly formatted code?

[โ€“] [email protected] 1 points 3 months ago* (last edited 3 months ago)

@BB_C I am using rustfmt in Emacs , but yet I ll improvise, colite reference of doubt and get back her, although ATM its not very different from a github issue.
i have cited the exact rust crate required (as per doc) , to build , and it build L's without that . My code compiles, instead of giving an error